summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-10 05:25:06 +0100
committerAndrew Dolgov <[email protected]>2007-08-10 05:25:06 +0100
commitf56e308090f460d97dbe834ad88754231c3459e9 (patch)
tree5854f9c6dd149fe276962c2ba43bbab39616822f /modules
parentef1ac7c73aeaf34129f26d0bda39bea3fc55eeb3 (diff)
localization updates
Diffstat (limited to 'modules')
-rw-r--r--modules/backend-rpc.php5
-rw-r--r--modules/pref-feeds.php5
2 files changed, 2 insertions, 8 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 2705f45f5..7e83e816a 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -306,11 +306,8 @@
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>";
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php
index 173244245..193a1a4bc 100644
--- a/modules/pref-feeds.php
+++ b/modules/pref-feeds.php
@@ -1052,10 +1052,7 @@
print "<p>".__('Published articles are exported as a public RSS feed and can be subscribed by anyone who knows the address specified below.')."</p>";
- $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");
+ $url_path = article_publish_url($link);
print "<p class=\"small\"><a id=\"pubGenAddress\" target=\"_new\" href=\"$url_path\">$url_path</a></p>";