diff --git a/theme/index.php b/theme/index.php
index feb1571722b..67f81bb4916 100644
--- a/theme/index.php
+++ b/theme/index.php
@@ -75,6 +75,9 @@
continue;
}
+ unset($THEME);
+ include_once("$CFG->dirroot/theme/$theme/config.php");
+
echo "
";
echo " | ";
@@ -84,17 +87,25 @@
echo '';
}
echo "$theme";
+ if (!isset($THEME->sheets)) {
+ notify("OLD THEME!!");
+ }
+
+ echo '';
if (file_exists("$theme/README.html")) {
- echo "$strpreview ";
+ echo "- $strpreview";
+ echo '
- ';
link_to_popup_window('/theme/'.$theme.'/README.html', $theme, $strinfo);
} else if (file_exists("$theme/README.txt")) {
- echo "
$strpreview ";
+ echo " - $strpreview";
+ echo '
- ';
link_to_popup_window('/theme/'.$theme.'/README.txt', $theme, $strinfo);
}
if ($CFG->theme != $theme) {
- echo "
$strchoose ";
+ echo " - $strchoose";
}
+ echo '
';
echo ' | ';
echo "
";
}