]> git.wh0rd.org - tt-rss.git/blobdiff - classes/handler/public.php
add a wrapper for standard error codes returned by backend, also add explanation...
[tt-rss.git] / classes / handler / public.php
index 954cbad47a59a901d0a4c57634cd67ce041b3823..46c74041c85c33a6de6b1036552ce2a8bac5ee80 100644 (file)
@@ -101,7 +101,7 @@ class Handler_Public extends Handler {
 
                                $tpl->setVariable('ARTICLE_ID',
                                        htmlspecialchars($orig_guid ? $line['link'] :
-                                                       $this->url_to_tag_uri($line['id'], $line['date_entered'])), true);
+                                                       $this->make_article_tag_uri($line['id'], $line['date_entered'])), true);
                                $tpl->setVariable('ARTICLE_LINK', htmlspecialchars($line['link']), true);
                                $tpl->setVariable('ARTICLE_TITLE', htmlspecialchars($line['title']), true);
                                $tpl->setVariable('ARTICLE_EXCERPT', $line["content_preview"], true);
@@ -706,7 +706,7 @@ class Handler_Public extends Handler {
 
        function index() {
                header("Content-Type: text/plain");
-               print json_encode(array("error" => array("code" => 7)));
+               print error_json(13);
        }
 
        function forgotpass() {
@@ -1032,7 +1032,7 @@ class Handler_Public extends Handler {
                }
        }
 
-       private function url_to_tag_uri($id, $timestamp) {
+       private function make_article_tag_uri($id, $timestamp) {
 
                $timestamp = date("Y-m-d", strtotime($timestamp));