[Home]WikiPatches/RequestedLinks

UseModWiki | WikiPatches | RecentChanges | Preferences

Here's a unified-diff patch against 1.0 that was inspired by WikiBugs/RequestedLinks. -- MikeCastle

diff -ru usemod10.orig/wiki.pl usemod10/wiki.pl
--- usemod10.orig/wiki.pl       Thu Sep 11 05:21:02 2003
+++ usemod10/wiki.pl    Tue Oct  7 15:22:52 2003
@@ -3821,6 +3821,9 @@
     }
     @links = &GetPageLinks($name, $pagelink, $interlink, $urllink);
     foreach $link (@links) {
+      if ( $link =~ /^\// ) {
+        $link = (split('/',$name))[0].$link;
+      }
       $seen{$link}++;
       if (($unique > 0) && ($seen{$link} != 1)) {
         next;

UseModWiki | WikiPatches | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited November 12, 2007 12:53 am by MarkusLude (diff)
Search: