Check only for php in schema globs.

This commit is contained in:
Thomas Willingham 2013-10-16 19:05:40 +01:00
parent 30e4a36084
commit b860a21fdc

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/redbasic/schema/*');
$files = glob('view/theme/redbasic/schema/*.php');
if($files) {
foreach($files as $file) {
$f = basename($file, ".php");