phrase) AND empty($this->process))
{
trigger_error('Error::phrase is an array so please use Error::construct() to prepare it', E_USER_ERROR);
}
if (empty($this->process))
{
$this->process = phrase($this->phrase);;
}
$this->process = (($text) ? $text : $this->process);
$errormessage = $this->process;
eval('$bugsys->template->flush("' . $bugsys->template->fetch('std_error') . '");');
exit;
}
function construct()
{
if (!is_array($this->phrase) OR count($this->phrase) < 1)
{
return;
}
$this->process = "\n\n
";
foreach ($this->phrase AS $phrase)
{
$this->process .= "\n\t- " . phrase($phrase) . "
";
}
$this->process .= "\n
";
}
function throw_permission()
{
$this->phrase = 'error_no_permission';
$this->throw();
}
}
/*=====================================================================*\
|| ###################################################################
|| # $HeadURL$
|| # $Id$
|| ###################################################################
\*=====================================================================*/
?>