]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/inline.pm
* map: Fix handling of common prefix to handle the case where it's
[ikiwiki.git] / IkiWiki / Plugin / inline.pm
index 3c0c6f140709b9e91fdbb8b13fa86c08ee400d96..b16636a705b80b39404476e0ebfe448561ad6c22 100644 (file)
@@ -173,8 +173,8 @@ sub preprocess_inline (@) { #{{{
                }
        }
 
-       my $rssurl=basename(rsspage($params{destpage}).$feednum);
-       my $atomurl=basename(atompage($params{destpage}).$feednum);
+       my $rssurl=basename(rsspage($params{destpage}).$feednum) if $feeds && $rss;
+       my $atomurl=basename(atompage($params{destpage}).$feednum) if $feeds && $atom;
        my $ret="";
 
        if ($config{cgiurl} && (exists $params{rootpage} ||