Make config editor for themes work on sfiab.com

This commit is contained in:
james 2009-11-30 19:00:04 +00:00
parent 9bad26096d
commit 078d8bdb0e

View File

@ -310,7 +310,9 @@ function config_editor($category, $year, $array_name, $self)
case 'theme':
print("<select name=\"$name\">");
/* Find all theme directories */
$themeroot = "{$_SERVER['DOCUMENT_ROOT']}{$config['SFIABDIRECTORY']}/theme";
$cwd=getcwd();
$themeroot = $cwd."/../theme";
// $themeroot = "{$_SERVER['DOCUMENT_ROOT']}{$config['SFIABDIRECTORY']}/theme";
$d = opendir($themeroot);
while(($f = readdir($d))) {
/* Load the theme. Loads theme into a local theme, not overwriting