cvs: smarty / NEWS /docs programmers.sgml /libs Smarty.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1074283295@cvsserver>
messju		Fri Jan 16 15:01:35 2004 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs	Smarty.class.php 
    /smarty/docs	programmers.sgml 
  Log:
  renamed $smarty->tpl_rror_reporting to $smarty->error_reporting
  "tpl_" is a bit redundant here (it's a TemPLate-engine overall :)
  
  
  
Index: smarty/NEWS
diff -u smarty/NEWS:1.425 smarty/NEWS:1.426
--- smarty/NEWS:1.425	Thu Jan 15 10:00:07 2004
+++ smarty/NEWS	Fri Jan 16 15:01:32 2004
@@ -1,3 +1,5 @@
+  - rename $smarty->tpl_error_reporting to $smarty->error_reporting
+    (messju)
   - fix interpretation of $smarty->security in {html_image} (messju)
   - add caching of requested paths to _assemble_plugin_filepath() (messju)
   - fix handling of comments inside {php}- and {literal}-blocks (messju)
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.471 smarty/libs/Smarty.class.php:1.472
--- smarty/libs/Smarty.class.php:1.471	Fri Jan  2 06:05:41 2004
+++ smarty/libs/Smarty.class.php	Fri Jan 16 15:01:33 2004
@@ -43,7 +43,7 @@
  * @version 2.6.1-dev
  */
 
-/* $Id: Smarty.class.php,v 1.471 2004/01/02 11:05:41 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.472 2004/01/16 20:01:33 messju Exp $ */
 
 /**
  * DIR_SEP isn't used anymore, but third party apps might
@@ -118,7 +118,7 @@
      *
      * @var boolean
      */
-    var $tpl_error_reporting  =  null;
+    var $error_reporting  =  null;
 
     /**
      * This is the path to the debug console template. If not set,
@@ -1140,8 +1140,8 @@
     {
         static $_cache_info = array();
         
-        $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(isset($this->tpl_error_reporting)
-               ? $this->tpl_error_reporting : error_reporting() & ~E_NOTICE);
+        $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(isset($this->error_reporting)
+               ? $this->error_reporting : error_reporting() & ~E_NOTICE);
 
         if (!$this->debugging && $this->debugging_ctrl == 'URL') {
             $_query_string = $this->request_use_auto_globals ? $_SERVER['QUERY_STRING'] : $GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'];
Index: smarty/docs/programmers.sgml
diff -u smarty/docs/programmers.sgml:1.50 smarty/docs/programmers.sgml:1.51
--- smarty/docs/programmers.sgml:1.50	Wed Jan 14 11:16:24 2004
+++ smarty/docs/programmers.sgml	Fri Jan 16 15:01:35 2004
@@ -446,8 +446,8 @@
 	   <literal>gpc_order</literal> is used.
       </para>
      </sect1>
-     <sect1 id="variable.tpl.error.reporting">
-      <title>$tpl_error_reporting</title>
+     <sect1 id="variable.error.reporting">
+      <title>$error_reporting</title>
       <para>
            When this value is set to a non-null-value it's value is
            used as php's error_reporting-level inside of display() and

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