From: <lei...@us...> - 2008-12-09 15:22:03
|
Author: leithoff Date: Tue Dec 9 15:47:35 2008 New Revision: 26490 URL: http://www.egroupware.org/viewvc?rev=3D26490&view=3Drev Log: debug stuff related to placeholder substitution Modified: branches/1.6/phpgwapi/inc/class.preferences.inc.php Modified: branches/1.6/phpgwapi/inc/class.preferences.inc.php URL: http://www.egroupware.org/viewvc/branches/1.6/phpgwapi/inc/class.prefe= rences.inc.php?rev=3D26490&r1=3D26489&r2=3D26490&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- branches/1.6/phpgwapi/inc/class.preferences.inc.php (original) +++ branches/1.6/phpgwapi/inc/class.preferences.inc.php Tue Dec 9 15:47:35= 2008 @@ -69,7 +69,7 @@ var $table =3D 'egw_preferences'; = var $values,$vars; // standard notify substitues, will be set by standard= _substitues() - + var $debug =3D false; /** * Standard constructor for setting $this->account_id */ @@ -110,6 +110,7 @@ } foreach($vals as $key =3D> $val) { + if ($this->debug) error_log(__METHOD__." replacing \$\$$key\$\$ with $v= al "); $replace[] =3D '$$'.$key.'$$'; $with[] =3D $val; } @@ -147,6 +148,7 @@ */ function standard_substitutes() { + if ($this->debug) error_log(__METHOD__." is called "); if (!is_array(@$GLOBALS['egw_info']['user']['preferences'])) { $GLOBALS['egw_info']['user']['preferences'] =3D $this->data; // else no= lang() @@ -174,6 +176,7 @@ 'email' =3D> lang('email-address of the user, eg. "%1"',$this->valu= es['email']), 'date' =3D> 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) // foreach($this->data as $app =3D> $data) |