1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 20:01:28 +00:00

better fatal error handling by frontend (remove error.php)

This commit is contained in:
Andrew Dolgov
2006-03-31 06:18:55 +01:00
parent 6e7f8d269e
commit af106b0ebe
8 changed files with 101 additions and 111 deletions

View File

@@ -9,6 +9,7 @@
require_once 'config.php';
require_once 'db-prefs.php';
require_once 'compat.php';
require_once 'errors.php';
require_once 'magpierss/rss_utils.inc';
@@ -1498,4 +1499,15 @@
return $version[1];
}
function print_error_xml($code, $add_msg = "") {
global $ERRORS;
$error_msg = $ERRORS[$code];
if ($add_msg) {
$error_msg = "$error_msg; $add_msg";
}
print "<error error-code=\"$code\" error-msg=\"$error_msg\"/>";
}
?>