mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +01:00
debug stuff related to placeholder substitution
This commit is contained in:
parent
cf51ea7120
commit
770207474e
@ -69,7 +69,7 @@ class preferences
|
|||||||
var $table = 'egw_preferences';
|
var $table = 'egw_preferences';
|
||||||
|
|
||||||
var $values,$vars; // standard notify substitues, will be set by standard_substitues()
|
var $values,$vars; // standard notify substitues, will be set by standard_substitues()
|
||||||
|
var $debug = false;
|
||||||
/**
|
/**
|
||||||
* Standard constructor for setting $this->account_id
|
* Standard constructor for setting $this->account_id
|
||||||
*/
|
*/
|
||||||
@ -110,6 +110,7 @@ class preferences
|
|||||||
}
|
}
|
||||||
foreach($vals as $key => $val)
|
foreach($vals as $key => $val)
|
||||||
{
|
{
|
||||||
|
if ($this->debug) error_log(__METHOD__." replacing \$\$$key\$\$ with $val ");
|
||||||
$replace[] = '$$'.$key.'$$';
|
$replace[] = '$$'.$key.'$$';
|
||||||
$with[] = $val;
|
$with[] = $val;
|
||||||
}
|
}
|
||||||
@ -147,6 +148,7 @@ class preferences
|
|||||||
*/
|
*/
|
||||||
function standard_substitutes()
|
function standard_substitutes()
|
||||||
{
|
{
|
||||||
|
if ($this->debug) error_log(__METHOD__." is called ");
|
||||||
if (!is_array(@$GLOBALS['egw_info']['user']['preferences']))
|
if (!is_array(@$GLOBALS['egw_info']['user']['preferences']))
|
||||||
{
|
{
|
||||||
$GLOBALS['egw_info']['user']['preferences'] = $this->data; // else no lang()
|
$GLOBALS['egw_info']['user']['preferences'] = $this->data; // else no lang()
|
||||||
@ -174,6 +176,7 @@ class preferences
|
|||||||
'email' => lang('email-address of the user, eg. "%1"',$this->values['email']),
|
'email' => lang('email-address of the user, eg. "%1"',$this->values['email']),
|
||||||
'date' => lang('todays date, eg. "%1"',$this->values['date']),
|
'date' => lang('todays date, eg. "%1"',$this->values['date']),
|
||||||
);
|
);
|
||||||
|
if ($this->debug) error_log(__METHOD__.print_r($this->vars,true));
|
||||||
// do the substituetion in the effective prefs (data)
|
// do the substituetion in the effective prefs (data)
|
||||||
//
|
//
|
||||||
foreach($this->data as $app => $data)
|
foreach($this->data as $app => $data)
|
||||||
|
Loading…
Reference in New Issue
Block a user