Skip to content

Commit e8a4bab

Browse files
author
oilyflutesalad
committed
Implemented: FS#1021 [DOMAINID] user prefix in Interface Config.
1 parent 6aa01ca commit e8a4bab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

interface/web/sites/tools.inc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function replacePrefix($name, $dataRecord) {
3232
if ($name=="") return "";
3333

3434
// Array containing keys to search
35-
$keywordlist=array('CLIENTNAME','CLIENTID');
35+
$keywordlist=array('CLIENTNAME','CLIENTID','DOMAINID');
3636

3737
// Try to match the key within the string
3838
foreach ($keywordlist as $keyword) {
@@ -44,6 +44,9 @@ function replacePrefix($name, $dataRecord) {
4444
case 'CLIENTID':
4545
$name=str_replace('['.$keyword.']', getClientID($dataRecord),$name);
4646
break;
47+
case 'DOMAINID':
48+
$name=str_replace('['.$keyword.']', $dataRecord['parent_domain_id'],$name);
49+
break;
4750
}
4851
}
4952
}

0 commit comments

Comments
 (0)