aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-14 21:25:58 -0700
committerfriendica <info@friendica.com>2013-05-14 21:25:58 -0700
commit5e4b9d7766ceffd19785f14443cc1b4d4f675d4e (patch)
tree8c53b73c154bb22a557bdd98b38bcbaa043c706e /boot.php
parent8a1c8c4a03899c844885da58f9184fc10e7d6b07 (diff)
downloadvolse-hubzilla-5e4b9d7766ceffd19785f14443cc1b4d4f675d4e.tar.gz
volse-hubzilla-5e4b9d7766ceffd19785f14443cc1b4d4f675d4e.tar.bz2
volse-hubzilla-5e4b9d7766ceffd19785f14443cc1b4d4f675d4e.zip
disable pcss when installing since modules don't yet work and pcss uses the view module, plus weekly doc update
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/boot.php b/boot.php
index 26dd8396f..ad5c2f8e1 100755
--- a/boot.php
+++ b/boot.php
@@ -1929,10 +1929,10 @@ function current_theme(){
* Provide a sane default if nothing is chosen or the specified theme does not exist.
*/
-function current_theme_url() {
+function current_theme_url($installing = false) {
global $a;
$t = current_theme();
- if (file_exists('view/theme/' . $t . '/php/style.php'))
+ if((file_exists('view/theme/' . $t . '/php/style.php')) && (! $installing))
return('view/theme/' . $t . '/php/style.pcss');
return('view/theme/' . $t . '/css/style.css');
}
@@ -2219,10 +2219,12 @@ function construct_page(&$a) {
* Build the page - now that we have all the components
*/
+ $installing = false;
- if($a->module != 'install') {
+ if($a->module == 'install')
+ $installing = true;
+ else
nav($a);
- }
require_once(theme_include('theme_init.php'));
@@ -2236,7 +2238,7 @@ function construct_page(&$a) {
head_add_css(((x($a->page,'template')) ? $a->page['template'] : 'default' ) . '.css');
head_add_css('mod_' . $a->module . '.css');
- head_add_css(current_theme_url());
+ head_add_css(current_theme_url($installing));
head_add_js('mod_' . $a->module . '.js');