2006-12-01, 09:40 AM
Hi there,
If I do this, my editor show a syntax error. (see the attachment)
[attachment=4820]
If I set this fix under:
Greez Garlant
Quote:Find:This is part two of the temp fix in ./inc/class_language.php
--
function set_language($language="english", $area="user")
{
global $mybb;
--
Above it add:
--
$language = str_replace(array("/", "\\", ".."), '', trim($language));
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