In PHP error log:
Code:
[Wed Apr 27 11:16:26 2005] [error] PHP Fatal error: Cannot redeclare construct_phrase() in ./includes/functions.php on line 36
Lines 34-72 of vB's functions.php are:
Code:
function construct_phrase()
{
static $argpad;
$args = func_get_args();
$numargs = sizeof($args);
// if we have only one argument, just return the argument
if ($numargs < 2)
{
return $args[0];
}
else
{
// call sprintf() on the first argument of this function
$phrase = @call_user_func_array('sprintf', $args);
if ($phrase !== false)
{
return $phrase;
}
else
{
// if that failed, add some extra arguments for debugging
for ($i = $numargs; $i < 10; $i++)
{
$args["$i"] = "[ARG:$i UNDEFINED]";
}
if ($phrase = @call_user_func_array('sprintf', $args))
{
return $phrase;
}
// if it still doesn't work, just return the un-parsed text
else
{
return $args[0];
}
}
}
}
Hm?
Szy.