Bug ID: 61838
           Summary: $wgShortUrlTemplate option not functional
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: ShortUrl
       Web browser: ---
   Mobile Platform: ---

Created attachment 14666
ShortUrl patch to make $wgShortUrlTemplate function

The ShortUrl extension documents a capability by which you can change the
default path of a short URL, normally .../Special:ShortUrl/NNNN

This is to be achieved by setting a global variable $wgShortUrlTemplate,
specifying the path component to use instead of the default.


$wgShortUrlTemplate = "/r/$1";

This would make the path .../r/NNNN

This capability simply doesn't work.

Examining the code, the extension clobbers $wgShortUrlTemplate, replacing it
with the default value (false).

The attached patch file suggests a fix and adds minor doc/comment cleanup.

You are receiving this mail because:
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to