From e97b7d136c5667262f0fc02cb8eb7112baa01811 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Sun, 21 Jun 2015 15:00:26 +0200 Subject: [PATCH] * PHP7 raises E_DEPRECATED use __construct for compatibility --- ChangeLog | 4 ++++ libs/Config_File.class.php | 2 +- libs/Smarty.class.php | 2 +- libs/Smarty_Compiler.class.php | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b2b4c402..79cbd46b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-06-21 Uwe Tews + + * PHP7 raises E_DEPRECATED use __construct for compatibility + 2013-09-30 * Fixed old vulnerability bug https://bugs.gentoo.org/show_bug.cgi?id=356615 diff --git a/libs/Config_File.class.php b/libs/Config_File.class.php index af4bc08b..6d8c2987 100644 --- a/libs/Config_File.class.php +++ b/libs/Config_File.class.php @@ -73,7 +73,7 @@ class Config_File { * * @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)) $this->set_path($config_path); diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index ab70d210..667e3b75 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -566,7 +566,7 @@ class Smarty /** * The class constructor. */ - function Smarty() + public function __construct() { $this->assign('SCRIPT_NAME', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : @$GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']); diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 49ef7d0d..00602150 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -78,7 +78,7 @@ class Smarty_Compiler extends Smarty { /** * The class constructor. */ - function Smarty_Compiler() + public function __construct() { // matches double quoted strings: // "foobar"