Skip to content

Commit 4dd2c08

Browse files
author
latham
committed
Allow config settings for country on client, reseller pages from the $conf
1 parent 0888d7d commit 4dd2c08

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

interface/lib/config.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@
133133
$conf['language'] = 'en';
134134
$conf['debug_language'] = false;
135135

136+
//** Default Country
137+
$conf['country'] = 'DE';
138+
136139

137140
//** Misc.
138141
$conf['interface_logout_url'] = ''; // example: http://www.domain.tld/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
'datatype' => 'VARCHAR',
221221

222222
'formtype' => 'SELECT',
223-
'default' => '$conf["country"]',
223+
'default' => $conf["country"],
224224
'datasource' => array ( 'type' => 'SQL',
225225
'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name',
226226
'keyfield'=> 'iso',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
'datatype' => 'VARCHAR',
210210

211211
'formtype' => 'SELECT',
212-
'default' => 'DE',
212+
'default' => $conf["country"],
213213
'datasource' => array ( 'type' => 'SQL',
214214
'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name',
215215
'keyfield'=> 'iso',

0 commit comments

Comments
 (0)