cvs: smarty / NEWS /libs Smarty.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1069575492@cvsserver>
messju		Sun Nov 23 03:18:12 2003 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs	Smarty.class.php 
  Log:
  add property $tpl_error_reporting
  
  
  
Index: smarty/NEWS
diff -u smarty/NEWS:1.406 smarty/NEWS:1.407
--- smarty/NEWS:1.406	Fri Nov 21 19:32:38 2003
+++ smarty/NEWS	Sun Nov 23 03:18:11 2003
@@ -1,3 +1,4 @@
+  - add property $tpl_error_reporting (messju)
   - remove property $undefined. "null" is used literally instead (messju)
 
 Version 2.6.0 (Nov 19, 2003)
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.461 smarty/libs/Smarty.class.php:1.462
--- smarty/libs/Smarty.class.php:1.461	Fri Nov 21 19:32:38 2003
+++ smarty/libs/Smarty.class.php	Sun Nov 23 03:18:12 2003
@@ -43,7 +43,7 @@
  * @version 2.6.1-dev
  */
 
-/* $Id: Smarty.class.php,v 1.461 2003/11/22 00:32:38 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.462 2003/11/23 08:18:12 messju Exp $ */
 
 /**
  * DIR_SEP isn't used anymore, but third party apps might
@@ -114,6 +114,13 @@
     var $debugging       =  false;
 
     /**
+     * When set, smarty does uses this value as error_reporting-level.
+     *
+     * @var boolean
+     */
+    var $tpl_error_reporting  =  null;
+
+    /**
      * This is the path to the debug console template. If not set,
      * the default one will be used.
      *
@@ -1162,7 +1169,8 @@
     {
         static $_cache_info = array();
 
-        $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(error_reporting() & ~E_NOTICE);
+        $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(isset($this->tpl_error_reporting) 
+               ? $this->tpl_error_reporting : error_reporting() & ~E_NOTICE);
 
         if (!$this->debugging && $this->debugging_ctrl == 'URL'
                && @strstr($GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'], $this->_smarty_debug_id)) {

-- 
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.