• 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: [Solved] GetModuleInstance deprecated - what to use instead?
PostPosted: Sat Mar 03, 2012 11:47 am 
Offline
New Member

Joined: Fri Feb 10, 2012 6:35 pm
Posts: 9
Hello everyone,

It seems that the function GetModuleInstance($module_name, $version) in class CmsObject is deprecated. It says so at http://www.cmsmadesimple.org/apidoc/
It doesn't say what to use instead, so... what should I use instead? :)

With kind regards,

Jurrie


Last edited by jurrie on Sat Mar 03, 2012 12:05 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: GetModuleInstance deprecated - what to use instead?
PostPosted: Sat Mar 03, 2012 11:54 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Aug 12, 2008 9:30 pm
Posts: 2087
Location: Feldkirchen in Kärnten, Austria
cms_utils::get_module()
http://www.cmsmadesimple.org/apidoc/CMS ... get_module

See 1.10 announcement viewtopic.php?f=1&t=57370

_________________
CMSMS Blog - I do this!
Forge profile
Github profile
Twitter
=============================================
Support CMSMS


Top
 Profile  
 
 Post subject: Re: GetModuleInstance deprecated - what to use instead?
PostPosted: Sat Mar 03, 2012 12:05 pm 
Offline
New Member

Joined: Fri Feb 10, 2012 6:35 pm
Posts: 9
Thank you Uniqu3!

Actually, I don't see it in the 1.10 announcement (only a note on deprecation of the $gCms→modules array), but I'll use cms_utils::get_module() as you've suggested!


Top
 Profile  
 
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
Arvixe - A CMSMS Partner