summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-09-16 10:54:02 +0100
committerAndrew Dolgov <[email protected]>2006-09-16 10:54:02 +0100
commitbb0f29a45468b26ec2a6fb8720e3a7c9e65be404 (patch)
treeff6736aa33b4b38a986e2e7476a12910847d01f3 /functions.php
parentf0e2373ae71be3db3cd92c9753f2759bfc7c4d85 (diff)
filter stupid feed: prefix from feed url
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index afe013d65..b90cb3136 100644
--- a/functions.php
+++ b/functions.php
@@ -1916,7 +1916,9 @@
}
function subscribe_to_feed($link, $feed_link, $cat_id = 0) {
-
+
+ $feed_link = preg_replace("/^feed://", $feed_link);
+
if ($cat_id == "0" || !$cat_id) {
$cat_qpart = "NULL";
} else {