mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
- cleanup of _getSmartyObj()
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
05.8.2017
|
||||
- bugfix wordwrap modifier could fail if used in nocache code.
|
||||
converted plugin file shared.mb_wordwrap.php into modifier.mb_wordwrap.php
|
||||
- cleanup of _getSmartyObj()
|
||||
|
||||
31.7.2017
|
||||
- Call clearstatcache() after mkdir() failure https://github.com/smarty-php/smarty/pull/379
|
||||
|
@@ -108,7 +108,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
||||
/**
|
||||
* smarty version
|
||||
*/
|
||||
const SMARTY_VERSION = '3.1.32-dev-17';
|
||||
const SMARTY_VERSION = '3.1.32-dev-18';
|
||||
|
||||
/**
|
||||
* define variable scopes
|
||||
@@ -1253,16 +1253,6 @@ class Smarty extends Smarty_Internal_TemplateBase
|
||||
Smarty_Internal_Template::$tplObjCache = array();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Smarty object
|
||||
*
|
||||
* @return Smarty
|
||||
*/
|
||||
public function _getSmartyObj()
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param boolean $compile_check
|
||||
*/
|
||||
|
@@ -266,7 +266,7 @@ class Smarty_Internal_Data
|
||||
*/
|
||||
public function _getSmartyObj()
|
||||
{
|
||||
return $this->smarty;
|
||||
return $this->_objType === 1 ? $this : $this->smarty;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -42,7 +42,6 @@
|
||||
* @method Smarty_Internal_TemplateBase unregisterPlugin(string $type, string $name)
|
||||
* @method Smarty_Internal_TemplateBase unregisterFilter(string $type, mixed $callback)
|
||||
* @method Smarty_Internal_TemplateBase unregisterResource(string $name)
|
||||
* @method Smarty _getSmartyObj()
|
||||
*/
|
||||
abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data
|
||||
{
|
||||
|
Reference in New Issue
Block a user