deprecated constructor

Joomla! - Admiror Columnizer is based on great jQuery library developed by Adam Wulf. More about Adam's Columnizer library you can find at Columnizer jQuery Plugin webpage.
It comes in All-in-One installer for Joomla! 1.5, Joomla! 1.6, Joomla! 1.7, Joomla! 2.5 and Joomla! 3.x
Post Reply
Message
Author
vocmm
Posts: 1
Joined: Fri Jul 28, 2017 7:12 pm

deprecated constructor

#1 Post by vocmm »

I'm getting this error with the Admiror Columnizer plugin enabled on one of my sites.

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentAdmirorcolumnizer has a deprecated constructor in /home3/wbfbible/public_html/plugins/content/admirorcolumnizer/admirorcolumnizer.php on line 20

Lines 20-29 read:
class plgContentAdmirorcolumnizer extends JPlugin {

//Constructor
function plgContentAdmirorcolumnizer(&$subject) {
parent::__construct($subject);

$this->plugin = JPluginHelper::getPlugin('content', 'admirorcolumnizer');
$this->params = new JRegistry($this->plugin->params);
// load current language
$this->loadLanguage();

How do I fix this?

Richard

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: deprecated constructor

#2 Post by Vasiljevski »

Thanks for reporting, I will probably fix this in the next release.

In the meantime you can apply the fix mentioned here: https://stackoverflow.com/questions/371 ... -same-name

I created github issue for this: https://github.com/vasiljevski/admirorc ... r/issues/4
Help Admiror Gallery become even better,
give us a review on JED

Post Reply