]> git.wh0rd.org - tt-rss.git/blobdiff - classes/opml.php
move some more functions out of functions.php; fix opml.php failing due to redeclared...
[tt-rss.git] / classes / opml.php
index 10967c171713958909d0a2d1578679e2f868df61..b91e395d1129d4108bd3dc18a66fae796fc7323b 100644 (file)
@@ -479,5 +479,15 @@ class Opml extends Handler_Protected {
                print "$msg<br/>";
        }
 
+       static function opml_publish_url($link){
+
+               $url_path = get_self_url_prefix();
+               $url_path .= "/opml.php?op=publish&key=" .
+                       get_feed_access_key($link, 'OPML:Publish', false, $_SESSION["uid"]);
+
+               return $url_path;
+       }
+
+
 }
 ?>