article_publish_link: calculate published feed in a different way (closes #214)

This commit is contained in:
Andrew Dolgov 2008-08-07 04:26:23 +01:00
parent 143a497306
commit e274978132
1 changed files with 10 additions and 2 deletions

View File

@ -5396,9 +5396,17 @@
function article_publish_url($link) { function article_publish_url($link) {
$url_path = ($_SERVER['HTTPS'] != "on" ? 'http://' : 'https://') . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH); $url_path = "";
$url_path .= "?op=publish&key=" . get_pref($link, "_PREFS_PUBLISH_KEY"); if ($_SERVER['HTTPS'] != "on") {
$url_path = "http://";
} else {
$url_path = "https://";
}
$url_path .= $_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
$url_path .= "/backend.php?op=publish&key=" . get_pref($link, "_PREFS_PUBLISH_KEY");
return $url_path; return $url_path;
} }