Skip to content

Commit b103e5c

Browse files
committed
Fixed: FS#1121 - Theme selector in client settings does not work.
1 parent 4be9865 commit b103e5c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

interface/web/client/form/client.tform.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@
6262
}
6363
}
6464

65+
//* Load themes
66+
$themes_list = array();
67+
$handle = @opendir(ISPC_THEMES_PATH);
68+
while ($file = @readdir ($handle)) {
69+
if (substr($file, 0, 1) != '.') {
70+
if(@is_dir(ISPC_THEMES_PATH."/$file")) {
71+
$themes_list[$file] = $file;
72+
}
73+
}
74+
}
75+
6576
$form["tabs"]['address'] = array (
6677
'title' => "Address",
6778
'width' => 100,
@@ -143,7 +154,7 @@
143154
'datatype' => 'VARCHAR',
144155
'formtype' => 'SELECT',
145156
'default' => 'default',
146-
'value' => array('default' => 'default'),
157+
'value' => $themes_list,
147158
'separator' => '',
148159
'width' => '30',
149160
'maxlength' => '255',

0 commit comments

Comments
 (0)