Page 1 of 1

[mod_issue] ListIt2 broken in 2.0

Posted: Sat Jul 05, 2014 12:53 pm
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;
      }
   }

Re: ListIt2 broken in 2.0

Posted: Sat Jul 05, 2014 1:00 pm
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.

Re: ListIt2 broken in 2.0

Posted: Sat Jul 05, 2014 1:31 pm
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.

Re: ListIt2 broken in 2.0

Posted: Sat Jul 05, 2014 1:34 pm
by Stikki
Already fixed for incoming 1.4.2 release, you can test GitHub version, don't use in production yet.