forked from science-ation/science-ation
Make config editor for themes work on sfiab.com
This commit is contained in:
parent
9bad26096d
commit
078d8bdb0e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user