MyBB Community Forums

Full Version: Syntax error in 1.2.2 temp fix?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,
Quote:Find:
--
function set_language($language="english", $area="user")
{
global $mybb;
--

Above it add:
--
$language = str_replace(array("/", "\\", ".."), '', trim($language));
This is part two of the temp fix in ./inc/class_language.php
If I do this, my editor show a syntax error. (see the attachment)
[attachment=4820]

If I set this fix under:
	function set_language($language="english", $area="user")
	{
		global $mybb;
Its work fine. Whats wrong? Is there a mistake in the temp fix or is my editor showing a wrong mistake? (I think or I hope this is the right section. If this is the wrong section, please move it to the right section.)

Greez Garlant
Sorry, it should be Under, not above.

I've updated the version in the release announcement.