Replace deprecated defaults() calls with ?? and ?: in include/ and view/
This commit is contained in:
parent
c0b78a9720
commit
8b836189d4
11 changed files with 30 additions and 30 deletions
|
@ -22,7 +22,7 @@ function load_page(App $a)
|
|||
require 'view/theme/frio/none.php';
|
||||
} else {
|
||||
$template = 'view/theme/' . $a->getCurrentTheme() . '/'
|
||||
. defaults($a->page, 'template', 'default' ) . '.php';
|
||||
. (($a->page['template'] ?? '') ?: 'default' ) . '.php';
|
||||
if (file_exists($template)) {
|
||||
require_once $template;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue