https://bugzilla.wikimedia.org/show_bug.cgi?id=61838

            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
          Assignee: yuvipa...@gmail.com
          Reporter: dan...@danielnorton.com
       Web browser: ---
   Mobile Platform: ---

Created attachment 14666
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=14666&action=edit
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.

e.g.

$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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to