Skip to content

Commit 87c1a07

Browse files
author
latham
committed
Use the theme and common settings from config.inc.php or config.inc.local.php
1 parent de676ef commit 87c1a07

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
'usertheme' => array (
165165
'datatype' => 'VARCHAR',
166166
'formtype' => 'SELECT',
167-
'default' => 'default',
167+
'default' => $conf["theme"],
168168
'value' => $themes_list,
169169
'separator' => '',
170170
'width' => '30',

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@
5050
$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
5151
$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
5252

53+
//* Load themes
54+
$themes_list = array();
55+
$handle = @opendir(ISPC_THEMES_PATH);
56+
while ($file = @readdir ($handle)) {
57+
if (substr($file, 0, 1) != '.') {
58+
if(@is_dir(ISPC_THEMES_PATH."/$file")) {
59+
$themes_list[$file] = $file;
60+
}
61+
}
62+
}
63+
5364
//* Languages
5465
$language_list = array();
5566
$handle = @opendir(ISPC_ROOT_PATH.'/lib/lang');
@@ -153,8 +164,8 @@
153164
'usertheme' => array (
154165
'datatype' => 'VARCHAR',
155166
'formtype' => 'SELECT',
156-
'default' => 'default',
157-
'value' => array('default' => 'default'),
167+
'default' => $conf["theme"],
168+
'value' => $themes_list,
158169
'separator' => '',
159170
'width' => '30',
160171
'maxlength' => '255',

0 commit comments

Comments
 (0)