Vergleich inc/class_language.php - 1.2.0 - 1.2.1

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * $Id: class_language.php 2191 2006-09-03 12:11:04Z chris $

 * $Id: class_language.php 2207 2006-09-10 01:46:13Z chris $

 */

class MyLanguage

 */

class MyLanguage

Zeile 70Zeile 70
	function set_language($language="english", $area="user")
{
global $mybb;

	function set_language($language="english", $area="user")
{
global $mybb;

		// Check if the language exists.
if(!$this->language_exists($language))
{
die("Language $language ($this->path/$language) is not installed");
}


 
		$language = trim($language);

// Default language is English.
if($language == "")

		$language = trim($language);

// Default language is English.
if($language == "")

		{

		{

			$language = "english";
}

			$language = "english";
}









		
// Check if the language exists.
if(!$this->language_exists($language))
{
die("Language $language ($this->path/$language) is not installed");
}


		$this->language = $language;
require $this->path."/".$language.".php";
$this->settings = $langinfo;

		$this->language = $language;
require $this->path."/".$language.".php";
$this->settings = $langinfo;