fix allow setting a default schema for the hub (issue #797) and allow selecting of focus (hubzilla default) schema if a default is set.

This commit is contained in:
git-marijus
2017-06-04 16:39:52 +02:00
parent e8a4e9a31f
commit e7c3ca9bd8
2 changed files with 16 additions and 6 deletions

View File

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