From f56e308090f460d97dbe834ad88754231c3459e9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 10 Aug 2007 05:25:06 +0100 Subject: localization updates --- functions.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'functions.php') 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; + } + ?> -- cgit v1.2.3