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);
   }
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;
      }
   }


