From c2cf3254c8e05161eb3f78d92d74aeaa7e3ac72a Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Wed, 6 Nov 2013 17:17:12 +0000 Subject: Don't fart if we've got a schema that doesn't exist at this hub. --- view/theme/redbasic/php/style.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'view/theme/redbasic/php/style.php') diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index 6a1b9c65e..716a2dd9e 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -33,10 +33,13 @@ // Setting $scheme to '' wasn't working for some reason, so we'll check it's // not --- like the mobile theme does instead. - if (($schema) && ($schema != '---')) { + if (($schema) && ($schema != '---')) { + // Check it exists, because this setting gets distributed to clones + if(file_exists('view/theme/redbasic/schema/' . $schema . '.php')) { $schemefile = 'view/theme/redbasic/schema/' . $schema . '.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) { -- cgit v1.2.3