• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [fixed] RegisterModulePlugin()
PostPosted: Sun Aug 21, 2011 4:57 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 4014
Location: The Netherlands
Every current module that has
\$1:
  function SetParameters()
  {
     $this->RegisterModulePlugin();

Can not be called with the short tag anymore.

Tested with Gallery 1.4.4 and FormBuilder 0.7

Is this by intention?

_________________


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: RegisterModulePlugin()
PostPosted: Sun Aug 21, 2011 5:13 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8167
Location: Fernie British Columbia, Canada
The SetParameters method has been deprecated (but not removed). it has been replaced by the InitializeFrontend() and InitializeAdmin() methods that are much more obvious.

For Reference purposes (going forward) the CreateParameter() calls should be done from within the InitializeAdmin method (so that parameters can show up inside the module help). The SetParameterType(), RegisterRoute(), RestrictUnknownParams(), and RegisterModulePlugin() methods should be called from within the InitializeFrontend() methods.

In order to minimize the backwards compatibility issues, I have modifed the CMSModule() class to call SetParameters() from within those two methods (InitializeFrontend() and InitializeAdmin()). This will be removed at a later date (Probably in 1.11 or 1.12).

_________________
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: RegisterModulePlugin()
PostPosted: Sun Aug 21, 2011 5:21 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 4014
Location: The Netherlands
fix confirmed

_________________


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


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 post attachments in this forum

Search for:
Jump to:  
cron
A2 Hosting