diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-03-06 14:56:35 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-03-06 14:56:35 +0100 |
commit | 1cea6144c90ec7e3e2cda07af655a0af36091381 (patch) | |
tree | 62d52a966d5e74732fa796f61cca15e88178f46c /view/theme | |
parent | 83c4c5b0950b0804a9e5777405dec9ca940fbac6 (diff) | |
download | volse-hubzilla-1cea6144c90ec7e3e2cda07af655a0af36091381.tar.gz volse-hubzilla-1cea6144c90ec7e3e2cda07af655a0af36091381.tar.bz2 volse-hubzilla-1cea6144c90ec7e3e2cda07af655a0af36091381.zip |
if we have not got a schema also look for default.css
Diffstat (limited to 'view/theme')
-rw-r--r-- | view/theme/redbasic/php/style.php | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index a71ba7793..30d5f0a16 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -64,14 +64,18 @@ if(! $a->install) { } } - // If we haven't got a schema, load the default. We shouldn't touch this - we - // should leave it for admins to define for themselves. - if (! $schema) { - if(file_exists('view/theme/redbasic/schema/default.php')) { - $schemefile = 'view/theme/redbasic/schema/default.php'; - require_once ($schemefile); - } - } + + // If we haven't got a schema, load the default. We shouldn't touch this - we + // should leave it for admins to define for themselves. + if (! $schema) { + if(file_exists('view/theme/redbasic/schema/default.php')) { + $schemefile = 'view/theme/redbasic/schema/default.php'; + require_once ($schemefile); + } + if(file_exists('view/theme/redbasic/schema/default.css')) { + $schemecss = file_get_contents('view/theme/redbasic/schema/default.css'); + } + } //Set some defaults - we have to do this after pulling owner settings, and we have to check for each setting |