[Solved] GetModuleInstance deprecated - what to use instead?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
jurrie
New Member
New Member
Posts: 9
Joined: Fri Feb 10, 2012 6:35 pm

[Solved] GetModuleInstance deprecated - what to use instead?

Post by jurrie »

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.
jurrie
New Member
New Member
Posts: 9
Joined: Fri Feb 10, 2012 6:35 pm

Re: GetModuleInstance deprecated - what to use instead?

Post by jurrie »

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!
Post Reply

Return to “Developers Discussion”