[Phpslash-commit] CVS: phpslash-ft/class functions.inc,1.129,1.130
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2003-02-12 19:10:32
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory sc8-pr-cvs1:/tmp/cvs-serv13358/phpslash-ft/class Modified Files: functions.inc Log Message: debug mode bug and striking text Index: functions.inc =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/functions.inc,v retrieving revision 1.129 retrieving revision 1.130 diff -C2 -d -r1.129 -r1.130 *** functions.inc 11 Feb 2003 14:03:42 -0000 1.129 --- functions.inc 12 Feb 2003 19:10:24 -0000 1.130 *************** *** 21,25 **** $tpl -> template to use ( "$tpl + ".tpl") ****************************************************************************/ ! function getMessage($msg, $tpl="") { global $_PSL; --- 21,25 ---- $tpl -> template to use ( "$tpl + ".tpl") ****************************************************************************/ ! function getMessage($msg, $tpl="", $translate=true) { global $_PSL; *************** *** 41,46 **** $templ->set_var(array( ! 'ERROR' => pslgetText($msg) ! )); $msg = $templ->parse('OUT','template'); --- 41,46 ---- $templ->set_var(array( ! 'ERROR' => $translate ? pslgetText($msg) : $msg ! )); $msg = $templ->parse('OUT','template'); *************** *** 970,974 **** $string = htmlentities($pslstrings[$string]); } elseif (($_PSL['debug']) AND ($pslstrings)) { ! $string = getMessage( $string, "messageStrike"); } return $string; --- 970,974 ---- $string = htmlentities($pslstrings[$string]); } elseif (($_PSL['debug']) AND ($pslstrings)) { ! $string = getMessage( $string, "messageStrike", false); } return $string; |