Commit 5485ff05 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Fixed get_config() not defined error

parent d9d010b3
......@@ -257,9 +257,12 @@ function error ($code, $message, $file, $line, $vars) {
}
// Ignore errors from smarty templates, which happen all too often
$compiledir = get_config('dataroot') . 'smarty/compile';
if (E_NOTICE == $code && substr($file, 0, strlen($compiledir)) == $compiledir) {
return;
if (function_exists('get_config')) {
$compiledir = get_config('dataroot') . 'smarty/compile';
if (E_NOTICE == $code && substr($file, 0, strlen($compiledir)) == $compiledir) {
return;
}
}
// Fix up the message, which is in HTML form
......
Markdown is supported
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