mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
* PHP7 raises E_DEPRECATED use __construct for compatibility
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2015-06-21 Uwe Tews
|
||||||
|
|
||||||
|
* PHP7 raises E_DEPRECATED use __construct for compatibility
|
||||||
|
|
||||||
2013-09-30
|
2013-09-30
|
||||||
|
|
||||||
* Fixed old vulnerability bug https://bugs.gentoo.org/show_bug.cgi?id=356615
|
* Fixed old vulnerability bug https://bugs.gentoo.org/show_bug.cgi?id=356615
|
||||||
|
@@ -73,7 +73,7 @@ class Config_File {
|
|||||||
*
|
*
|
||||||
* @param string $config_path (optional) path to the config files
|
* @param string $config_path (optional) path to the config files
|
||||||
*/
|
*/
|
||||||
function Config_File($config_path = NULL)
|
public function __construct($config_path = NULL)
|
||||||
{
|
{
|
||||||
if (isset($config_path))
|
if (isset($config_path))
|
||||||
$this->set_path($config_path);
|
$this->set_path($config_path);
|
||||||
|
@@ -566,7 +566,7 @@ class Smarty
|
|||||||
/**
|
/**
|
||||||
* The class constructor.
|
* The class constructor.
|
||||||
*/
|
*/
|
||||||
function Smarty()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->assign('SCRIPT_NAME', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME']
|
$this->assign('SCRIPT_NAME', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME']
|
||||||
: @$GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']);
|
: @$GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']);
|
||||||
|
@@ -78,7 +78,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
/**
|
/**
|
||||||
* The class constructor.
|
* The class constructor.
|
||||||
*/
|
*/
|
||||||
function Smarty_Compiler()
|
public function __construct()
|
||||||
{
|
{
|
||||||
// matches double quoted strings:
|
// matches double quoted strings:
|
||||||
// "foobar"
|
// "foobar"
|
||||||
|
Reference in New Issue
Block a user