[invalid] ListIt2 broken in 2.0

Forum rules
Only administrators can post or move items here.
Post Reply
drmikecrowe
Forum Members
Forum Members
Posts: 23
Joined: Sun Sep 20, 2009 1:22 pm

[invalid] 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
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: ListIt2 broken in 2.0

Post by Rolf »

This board is for Core issues only.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Closed Issues”