]> git.wh0rd.org - tt-rss.git/blobdiff - errors.php
pngcrush.sh
[tt-rss.git] / errors.php
index a18d540bdbf67f1a4e13acbe696e96914a1ad769..d9185307a7bb8430b352b81bb35617141402c4b4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
-       set_include_path(get_include_path() . PATH_SEPARATOR . 
-               dirname(__FILE__) . "/include");
+       set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR .
+               get_include_path());
 
        require_once "functions.php";
 
@@ -12,7 +12,7 @@
        $ERRORS[2] = __("This program requires cookies " .
                        "to function properly. Your browser doesn't seem to support them.");
 
-       $ERRORS[3] = __("Backend sanity check failed");
+       $ERRORS[3] = __("Backend sanity check failed.");
 
        $ERRORS[4] = __("Frontend sanity check failed.");
 
 
        $ERRORS[9] = __("Configuration check failed");
 
-       $ERRORS[10] = __("Your version of MySQL is not currently supported. Please see
-               official site for more information.");
+       $ERRORS[10] = __("Your version of MySQL is not currently supported. Please see official site for more information.");
 
        $ERRORS[11] = "[This error is not returned by server]";
 
        $ERRORS[12] = __("SQL escaping test failed, check your database and PHP configuration");
 
+       $ERRORS[13] = __("Method not found");
+
+       $ERRORS[14] = __("Plugin not found");
+
        if ($_REQUEST['mode'] == 'js') {
-               header("Content-Type: text/plain; charset=UTF-8");
+               header("Content-Type: text/javascript; charset=UTF-8");
 
                print "var ERRORS = [];\n";