Zeile 74 | Zeile 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 237 | Zeile 237 |
---|
*/ function parse_replace($matches) {
|
*/ function parse_replace($matches) {
|
return $this->$matches[1];
| return $this->{$matches[1]};
|
} }
| } }
|