aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-20 16:47:58 -0700
committerfriendica <info@friendica.com>2014-10-20 16:47:58 -0700
commitcb15c73dae51c7001fa7277ef4d324645f72c5c3 (patch)
tree3e886a2884d6a6be6481ffcdce918d99c3594f5b /boot.php
parentc909b8be060cb04479eba79232030e3da25410c6 (diff)
downloadvolse-hubzilla-cb15c73dae51c7001fa7277ef4d324645f72c5c3.tar.gz
volse-hubzilla-cb15c73dae51c7001fa7277ef4d324645f72c5c3.tar.bz2
volse-hubzilla-cb15c73dae51c7001fa7277ef4d324645f72c5c3.zip
move all theme initialisation to one place - just after calling module_init. Revert if there are serious issues, but please note the issues in as much detail as possible so we can work through them.
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/boot.php b/boot.php
index 14d0a61a5..abbf48636 100755
--- a/boot.php
+++ b/boot.php
@@ -1880,13 +1880,9 @@ function get_custom_nav(&$a,$navname) {
}
-function construct_page(&$a) {
-
+function load_pdl(&$a) {
require_once('include/comanche.php');
- // in case a page has overloaded a module, see if we already have a layout defined
- // otherwise, if a pdl file exists for this module, use it
-
if(! count($a->layout)) {
$n = 'mod_' . $a->module . '.pdl' ;
$u = comanche_get_channel_id();
@@ -1898,12 +1894,20 @@ function construct_page(&$a) {
comanche_parser($a,$s);
}
- $comanche = ((count($a->layout)) ? true : false);
+}
+
+
+
+function construct_page(&$a) {
+
/**
* Build the page - now that we have all the components
*/
+
+ $comanche = ((count($a->layout)) ? true : false);
+
require_once(theme_include('theme_init.php'));
$installing = false;