|
From: Ulf E. <ulf...@us...> - 2005-05-25 18:07:53
|
Update of /cvsroot/phpbt/phpbt/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1685/inc Modified Files: functions.php Log Message: Allow error messages also when templates are unavailable (due to errors) Index: functions.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- functions.php 15 Feb 2005 13:34:20 -0000 1.49 +++ functions.php 25 May 2005 18:07:43 -0000 1.50 @@ -37,6 +37,11 @@ function show_text($text, $iserror = false) { global $t; + if (!is_object($t)) { + echo "<div class=\"error\">$text</div>"; + exit; + } + $t->assign(array( 'text' => $text, 'iserror' => $iserror |