Vergleich inc/class_language.php - 1.8.13 - 1.8.26

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 74Zeile 74
	 * @param string $language The language to use.
* @param string $area The area to set the language for.
*/

	 * @param string $language The language to use.
* @param string $area The area to set the language for.
*/

	function set_language($language="english", $area="user")

	function set_language($language="", $area="user")

	{
global $mybb;

$language = preg_replace("#[^a-z0-9\-_]#i", "", $language);


	{
global $mybb;

$language = preg_replace("#[^a-z0-9\-_]#i", "", $language);


		// Default language is English.

		// Use the board's default language

		if($language == "")
{

		if($language == "")
{

			$language = "english";

			$language = $mybb->settings['bblanguage'];

		}

// Check if the language exists.

		}

// Check if the language exists.