don't load any configs from DB if installing - especially in style.pcss
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user