Don't break themes by using functions we don't need.

If you've got a theme that started off copying Redbasic (ie, all of you) need to do this too.
This commit is contained in:
Thomas Willingham
2013-10-16 17:08:19 +01:00
parent a3b358d025
commit 30e4a36084
2 changed files with 7 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ function redbasic_form(&$a, $schema, $nav_colour, $bgcolour, $background_image,
$scheme_choices = array();
$scheme_choices["---"] = t("Default");
$files = glob('view/theme/' . current_theme() . '/schema/*');
$files = glob('view/theme/redbasic/schema/*');
if($files) {
foreach($files as $file) {
$f = basename($file, ".php");