]> git.wh0rd.org - tt-rss.git/blobdiff - modules/backend-rpc.php
localization updates
[tt-rss.git] / modules / backend-rpc.php
index 2705f45f55d789ebe562ad86363d164451a753a0..7e83e816a291a8da8b88d8108b1a4aefcca0118d 100644 (file)
                        print "<rpc-reply>";
 
                        set_pref($link, "_PREFS_PUBLISH_KEY", generate_publish_key());
-               
-                       $url_path = 'http://' . $_SERVER["HTTP_HOST"] . \
-                               parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
 
-                       $new_link = $url_path . "?op=publish&key=" . get_pref($link, "_PREFS_PUBLISH_KEY");
+                       $new_link = article_publish_url($link);         
 
                        print "<link><![CDATA[$new_link]]></link>";