]> git.wh0rd.org - tt-rss.git/commitdiff
article_publish_url: syntax fix
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 10 Aug 2007 05:52:11 +0000 (06:52 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 10 Aug 2007 05:52:11 +0000 (06:52 +0100)
functions.php
tt-rss.js

index eb14f52e55dda6e7812280a7083a27ed19e001ef..51c2dd17eece05c35419c8ff301668576e0c2979 100644 (file)
 
        function article_publish_url($link) {
 
-               $url_path = 'http://' . $_SERVER["HTTP_HOST"] . \
-                       parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
+               $url_path = 'http://' . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
 
                $url_path .= "?op=publish&key=" . get_pref($link, "_PREFS_PUBLISH_KEY");
 
index 1a4590522c744fca748c53e2bd66aa26e33ff01b..cf68a0f503f09e07d394af004f86e17d9770158b 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -27,6 +27,10 @@ function tagsAreDisplayed() {
 
 function toggleTags(show_all) {
 
+       try {
+
+       debug("toggleTags: " + show_all + "; " + display_tags);
+
        var p = document.getElementById("dispSwitchPrompt");
 
        if (!show_all && !display_tags) {
@@ -43,6 +47,10 @@ function toggleTags(show_all) {
                notify_progress("Loading, please wait...", true);
                updateFeedList();
        }
+
+       } catch (e) {
+               exception_error("toggleTags", e);
+       }
 }
 
 function dlg_frefresh_callback() {