Commit 5b0d126e authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Don't use the smarty function when ConfigSanityExceptions are being

thrown - it causes too many dependency problems on the nigel object
being available
parent a927c8fc
......@@ -475,14 +475,14 @@ class MaharaException extends Exception {
$message = strip_tags($outputmessage);
$message = htmlspecialchars_decode($message);
if (function_exists('smarty')) {
if (function_exists('smarty') && !$this instanceof ConfigSanityException) {
$smarty = smarty();
$smarty->assign('title', $outputtitle);
$smarty->assign('message', $outputmessage);
else {
echo <<<EOF
echo <<<EOF
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment