summaryrefslogtreecommitdiff
path: root/functions.php
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 /functions.php
parentef1ac7c73aeaf34129f26d0bda39bea3fc55eeb3 (diff)
localization updates
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 336a6d4b9..7a9591535 100644
--- a/functions.php
+++ b/functions.php
@@ -3855,7 +3855,11 @@
$feed_title = $qfh_ret[1];
$feed_site_url = $qfh_ret[2];
$last_error = $qfh_ret[3];
-
+
+ if ($feed == -2) {
+ $feed_site_url = article_publish_url($link);
+ }
+
/// STOP //////////////////////////////////////////////////////////////////////////////////
if (!$offset) {
@@ -4208,4 +4212,14 @@
return sha1(uniqid(rand(), true));
}
+ function article_publish_url($link) {
+
+ $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");
+
+ return $url_path;
+ }
+
?>