cvs: smarty /libs Smarty.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1075044965@cvsserver>
messju		Sun Jan 25 10:36:05 2004 EDT

  Modified files:              
    /smarty/libs	Smarty.class.php 
  Log:
  Smarty::_trigger_fatal_error() uses Smarty::trigger_error() now,
  instead of the native trigger_error()-function
  
  
  
http://cvs.php.net/diff.php/smarty/libs/Smarty.class.php?r1=1.474&r2=1.475&ty=u
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.474 smarty/libs/Smarty.class.php:1.475
--- smarty/libs/Smarty.class.php:1.474	Fri Jan 16 17:12:07 2004
+++ smarty/libs/Smarty.class.php	Sun Jan 25 10:36:05 2004
@@ -43,7 +43,7 @@
  * @version 2.6.2-dev
  */
 
-/* $Id: Smarty.class.php,v 1.474 2004/01/16 22:12:07 mohrt Exp $ */
+/* $Id: Smarty.class.php,v 1.475 2004/01/25 15:36:05 messju Exp $ */
 
 /**
  * DIR_SEP isn't used anymore, but third party apps might
@@ -1864,13 +1864,12 @@
         if(isset($file) && isset($line)) {
             $info = ' ('.basename($file).", line $line)";
         } else {
-            $info = null;
+            $info = '';
         }
         if (isset($tpl_line) && isset($tpl_file)) {
-            trigger_error("Smarty error: [in " . $tpl_file . " line " .
-                          $tpl_line . "]: $error_msg$info", $error_type);
+            $this->trigger_error('[in ' . $tpl_file . ' line ' . $tpl_line . "]: $error_msg$info", $error_type);
         } else {
-            trigger_error("Smarty error: $error_msg$info", $error_type);
+            $this->trigger_error($error_msg . $info, $error_type);
         }
     }
 

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.