]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/frio_boot.php
Merge pull request #8135 from annando/brief
[friendica.git] / view / theme / frio / php / frio_boot.php
index 3f8ed1ed0b0e87a857aff5e56c84781768d8bbff..fd14e147784576d4e9df5bea4c7bb8da7ba36757 100644 (file)
@@ -3,14 +3,15 @@
 /**
  * @file view/theme/frio/php/frio_boot.php
  *
- * @brief This file contains functions for page construction
+ * This file contains functions for page construction
  *
  */
 
 use Friendica\App;
+use Friendica\DI;
 
 /**
- * @brief Load page template in dependence of the template mode
+ * Load page template in dependence of the template mode
  *
  * @todo Check if this is really needed.
  */
@@ -22,7 +23,7 @@ function load_page(App $a)
                require 'view/theme/frio/none.php';
        } else {
                $template = 'view/theme/' . $a->getCurrentTheme() . '/'
-                       . ((x($a->page, 'template')) ? $a->page['template'] : 'default' ) . '.php';
+                       . ((DI::page()['template'] ?? '') ?: 'default' ) . '.php';
                if (file_exists($template)) {
                        require_once $template;
                } else {
@@ -32,7 +33,7 @@ function load_page(App $a)
 }
 
 /**
- * @brief Check if page is a modal page
+ * Check if page is a modal page
  *
  * This function checks if $_REQUEST['pagename'] is
  * a defined in a $modalpages
@@ -53,7 +54,7 @@ function is_modal() {
 }
 
 /**
- * @brief Array with modalpages
+ * Array with modalpages
  *
  * The array contains the page names of the pages
  * which should displayed as modals
@@ -73,7 +74,7 @@ function get_modalpage_list() {
 }
 
 /**
- * @brief Array with standard pages
+ * Array with standard pages
  *
  * The array contains the page names of the pages
  * which should displayed as standard-page
@@ -90,7 +91,7 @@ function get_standard_page_list() {
 }
 
 /**
- * @brief Check if page is standard page
+ * Check if page is standard page
  *
  * This function checks if $_REQUEST['pagename'] is
  * a defined $standardpages
@@ -111,7 +112,7 @@ function is_standard_page($pagetitle) {
        return $is_standard_page;
 }
 /**
- * @brief Get the typ of the page
+ * Get the typ of the page
  *
  * @param type $pagetitle
  * @return string