Vergleich inc/class_language.php - 1.4.0 - 1.4.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: class_language.php 4047 2008-07-26 03:21:29Z ZiNgaBuRgA $

 * $Id: class_language.php 4365 2009-05-04 02:59:54Z Tikitiki $

 */

class MyLanguage

 */

class MyLanguage

Zeile 91Zeile 91
		$this->settings = $langinfo;

// Load the admin language files as well, if needed.

		$this->settings = $langinfo;

// Load the admin language files as well, if needed.

		if($area == "admin" || $area == "admin.old") // temporary: "|| $area == "admin.old""

		if($area == "admin")

		{
if(!is_dir($this->path."/".$language."/{$area}"))
{

		{
if(!is_dir($this->path."/".$language."/{$area}"))
{

Zeile 129Zeile 129
		if($isdatahandler === true)
{
$this->language = str_replace('/admin', '', $this->language);

		if($isdatahandler === true)
{
$this->language = str_replace('/admin', '', $this->language);

			$lfile = $this->path."/".$this->language."/".$section.".lang.php";

 
		}

		}

		else
{
$lfile = $this->path."/".$this->language."/".$section.".lang.php";
}
if(file_exists($lfile))
{
require_once $lfile;



		$lfile = $this->path."/".$this->language."/".$section.".lang.php";

if(file_exists($lfile))
{
require_once $lfile;
}
elseif(file_exists($this->path."/english/".$section.".lang.php"))
{
require_once $this->path."/english/".$section.".lang.php";

		}
else
{

		}
else
{

Zeile 146Zeile 147
				die("$lfile does not exist");
}
}

				die("$lfile does not exist");
}
}

 
		
// We must unite and protect our language variables!
$lang_keys_ignore = array('language', 'path', 'settings');

		
if(is_array($l))
{
foreach($l as $key => $val)
{

		
if(is_array($l))
{
foreach($l as $key => $val)
{

				if(empty($this->$key) || $this->$key != $val)

				if((empty($this->$key) || $this->$key != $val) && !in_array($key, $lang_keys_ignore))

				{
$this->$key = $val;
}

				{
$this->$key = $val;
}