X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=errors.php;h=d9185307a7bb8430b352b81bb35617141402c4b4;hb=50052fb78a3a9d1bb3fa488e7fd7b23125c38124;hp=967bb4e33aea29353559897290b62448119488d6;hpb=8dc062e5274e6dd23972f2f1470ec8447c90ccfc;p=tt-rss.git diff --git a/errors.php b/errors.php index 967bb4e3..d9185307 100644 --- a/errors.php +++ b/errors.php @@ -1,28 +1,54 @@ Please update."); + $ERRORS[13] = __("Method not found"); - $ERRORS[6] = _("Request not authorized."); + $ERRORS[14] = __("Plugin not found"); - $ERRORS[7] = _("No operation to perform."); + if ($_REQUEST['mode'] == 'js') { + header("Content-Type: text/javascript; charset=UTF-8"); - $ERRORS[8] = _("Could not display feed: query failed. Please check label match syntax or local configuration."); + print "var ERRORS = [];\n"; - $ERRORS[8] = _("Denied. Your access level is insufficient to access this page."); + foreach ($ERRORS as $id => $error) { - $ERRORS[9] = _("Configuration check failed"); + $error = preg_replace("/\n/", "", $error); + $error = preg_replace("/\"/", "\\\"", $error); - $ERRORS[10] = _("Your version of MySQL is not currently supported. Please see - official site for more information."); + print "ERRORS[$id] = \"$error\";\n"; + } + } ?>