diff options
author | git-marijus <mario@mariovavti.com> | 2017-06-04 16:39:52 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-06-04 16:39:52 +0200 |
commit | e7c3ca9bd832f83bf2f66d6a06761062f2118185 (patch) | |
tree | 17f5f14f00217a6dc2f51c1f5cfd4be5381b37ce /view/theme/redbasic/php/style.php | |
parent | e8a4e9a31f57e53e076b440fc3b728044c42adda (diff) | |
download | volse-hubzilla-e7c3ca9bd832f83bf2f66d6a06761062f2118185.tar.gz volse-hubzilla-e7c3ca9bd832f83bf2f66d6a06761062f2118185.tar.bz2 volse-hubzilla-e7c3ca9bd832f83bf2f66d6a06761062f2118185.zip |
fix allow setting a default schema for the hub (issue #797) and allow selecting of focus (hubzilla default) schema if a default is set.
Diffstat (limited to 'view/theme/redbasic/php/style.php')
-rw-r--r-- | view/theme/redbasic/php/style.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index a666f96f2..06cf23ba2 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -56,10 +56,9 @@ if (($schema) && ($schema != '---')) { } -// 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. -// default.php and default.css MUST be symlinks to existing schema files. -if (! $schema) { +// Allow admins to set a default schema for the hub. +// default.php and default.css MUST be symlinks to existing schema files in view/theme/redbasic/schema +if ((!$schema) || ($schema == '---')) { if(file_exists('view/theme/redbasic/schema/default.php')) { $schemefile = 'view/theme/redbasic/schema/default.php'; |