public static function fatalNoDatabaseError($error)
 {
     global $NONINTERACTIVE_SCRIPT;
     if (isset($NONINTERACTIVE_SCRIPT) && $NONINTERACTIVE_SCRIPT) {
         // Non-interactive script running, return error message as comments
         echo "#error_occured\n";
         echo "# An error has occured in the application\n";
         echo "# ::{$error}::\n";
         echo "# Memory used: " . memory_get_usage() . "\n";
         die;
     }
     $smarty = new \SmartyBC();
     $smarty->compile_check = true;
     $smarty->register_block('t', 'smarty_block_t');
     // Needed even though message will be in English
     $smarty->assign("Application", APPLICATION_NAME);
     $smarty->assign("error", $error);
     $smarty->assign("memory_used", memory_get_usage());
     $smarty->display("error.tpl");
     die;
 }