don't load any configs from DB if installing - especially in style.pcss

This commit is contained in:
friendica
2014-02-02 18:18:22 -08:00
parent 38bce48f28
commit baf3b052f6
3 changed files with 11 additions and 6 deletions

View File

@@ -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