diff options
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 16 |
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; + } + ?> |