diff options
author | friendica <info@friendica.com> | 2014-02-02 18:18:22 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-02 18:18:22 -0800 |
commit | baf3b052f645d7826ada25a05c742d1e5d4a0b51 (patch) | |
tree | 9f1af6ee2616c574cef1f7c219b93eb53f7955e2 /view | |
parent | 38bce48f288244c967d325639e033e0602fa0bcc (diff) | |
download | volse-hubzilla-baf3b052f645d7826ada25a05c742d1e5d4a0b51.tar.gz volse-hubzilla-baf3b052f645d7826ada25a05c742d1e5d4a0b51.tar.bz2 volse-hubzilla-baf3b052f645d7826ada25a05c742d1e5d4a0b51.zip |
don't load any configs from DB if installing - especially in style.pcss
Diffstat (limited to 'view')
-rw-r--r-- | view/theme/redbasic/php/style.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index aec27961e..8d5c23a03 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -1,5 +1,7 @@ <?php -// Get the UID of the channel owner + +if(! $a->install) { + // Get the UID of the channel owner $uid = get_theme_uid(); if($uid) @@ -32,6 +34,8 @@ $top_photo=get_pconfig($uid,'redbasic','top_photo'); $reply_photo=get_pconfig($uid,'redbasic','reply_photo'); +} + // Now load the scheme. If a value is changed above, we'll keep the settings // If not, we'll keep those defined by the schema // Setting $scheme to '' wasn't working for some reason, so we'll check it's |