]> git.wh0rd.org Git - tt-rss.git/commitdiff
add cosmetic workaround for get_self_url_prefix() to stop the unwashed whining about...
authorAndrew Dolgov <fox@fakecake.org>
Fri, 7 Dec 2012 05:47:46 +0000 (09:47 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Fri, 7 Dec 2012 05:47:50 +0000 (09:47 +0400)
include/functions.php

index 1c3f4cbb9d1e071aee7d0462303dca181ce9e535..95881dd9e10a7d957868903c7d72d787c96b8a15 100644 (file)
                return $tag;
        }
 
+       // we need to placate idiots who don't know any better
        function get_self_url_prefix() {
-               return SELF_URL_PATH;
+               return preg_replace("/\/$/", "", SELF_URL_PATH);
        }
 
        function opml_publish_url($link){