Vergleich inc/class_language.php - 1.8.6 - 1.8.20

  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.

Zeile 237Zeile 237
	 */
function parse_replace($matches)
{

	 */
function parse_replace($matches)
{

		return $this->$matches[1];

		return $this->{$matches[1]};

	}
}

	}
}