Admiror Joomla! Community
http://www.vasiljevski.com/forum/

deprecated constructor
http://www.vasiljevski.com/forum/viewtopic.php?f=32&t=2587
Page 1 of 1

Author:  vocmm [ Fri Jul 28, 2017 7:20 pm ]
Post subject:  deprecated constructor

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

Author:  Vasiljevski [ Mon Aug 14, 2017 11:09 pm ]
Post subject:  Re: deprecated constructor

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

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/