|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
thiebo Smarty Pro
Joined: 16 Jan 2005 Posts: 144 Location: Paris
|
Posted: Mon Dec 14, 2015 10:05 am Post subject: smartypaginate php7 constructor |
|
|
Hi,
I just updated to php7 and I got this error message on a page using smarty paginate :
Quote: |
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SmartyPaginate has a deprecated constructor in /Library/WebServer/Documents/messources/SmartyPaginate.class.php on line 29
|
The only thing I did was changing
Code: |
class SmartyPaginate {
/**
* Class Constructor
*/
function SmartyPaginate() { }
|
to this :
Code: |
class SmartyPaginate {
/**
* Class Constructor
*/
function __construct() { }
|
Seems to work fine. |
|
Back to top |
|
elpmis Smarty Elite
Joined: 07 Jun 2007 Posts: 321
|
Posted: Mon Dec 14, 2015 2:05 pm Post subject: |
|
|
Thx for your advice!! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|