renamed $smarty->tpl_rror_reporting to $smarty->error_reporting

"tpl_" is a bit redundant here (it's a TemPLate-engine overall :)
This commit is contained in:
messju
2004-01-16 20:01:35 +00:00
parent 5217ffa6b0
commit 9b032e1ea4
3 changed files with 7 additions and 5 deletions

2
NEWS
View File

@@ -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)

View File

@@ -446,8 +446,8 @@ $smarty->autoload_filters = array('pre' => array('trim', 'stamp'),
<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

View File

@@ -118,7 +118,7 @@ class Smarty
*
* @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 @@ class Smarty
{
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'];