[mod_issue] ListIt2 broken in 2.0

A forum for module developers to discuss how to convert their modules to be compatible with CMSMS 2.0. Please read the APIDOC at http://www.cmsmadesimple.org/APIDOC2_0/
Post Reply
drmikecrowe
Forum Members
Forum Members
Posts: 23
Joined: Sun Sep 20, 2009 1:22 pm

[mod_issue] ListIt2 broken in 2.0

Post by drmikecrowe »

Folks,

How would we fix this? ListIt2 uses this to load the language files:

Code: Select all

   public function ModLang()
   {
      $this->LoadLangMethods();

      $args = func_get_args();
      array_unshift($args,'');
      $args[0] = &$this;

      return call_user_func_array('cms_module_Lang', $args);
   }
However, LoadLangMethods() isn't present in 2.0.

It does this (in 1.x):

Code: Select all

   function LoadLangMethods()
   {
      if (!$this->modlang)
      {
         require_once(cms_join_path(dirname(__FILE__), 'module_support', 'modlang.inc.php'));
         $this->modlang = true;
      }
   }
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1921
Joined: Mon Jan 29, 2007 4:47 pm

Re: ListIt2 broken in 2.0

Post by Jo Morg »

drmikecrowe wrote:Folks,

How would we fix this?
Sorry, you can't!
It's the module's developer responsibility to do so (unless stated otherwise).
Developers will update their own modules on their own time. Hacking the modules source code is not advised nor supported.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
drmikecrowe
Forum Members
Forum Members
Posts: 23
Joined: Sun Sep 20, 2009 1:22 pm

Re: ListIt2 broken in 2.0

Post by drmikecrowe »

My question was more "How has the language functionality changed in 2.0?"

I've written some plugins for ListIt2 and use it regularly. I was going to assist in the porting, but I was looking for some pointers in the new method of handling languages in modules.
Stikki

Re: ListIt2 broken in 2.0

Post by Stikki »

Already fixed for incoming 1.4.2 release, you can test GitHub version, don't use in production yet.
Post Reply

Return to “Module Developers”