https://www.mediawiki.org/wiki/Special:Code/MediaWiki/103450

Revision: 103450
Author:   hashar
Date:     2011-11-17 10:10:40 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
skip Media: links in addition to Special: links

That one triggered an exception stack trace when using Media:foo as
a target on Special:WhatLinksHere.

Example:
Special:WhatLinksHere/Media:file.png

That is a rare occurence that "should not happen". I am not sure it is
worth backporting to 1.18 although it impacts live site:

http://en.wikipedia.org/wiki/Special:WhatLinksHere/Media:BSicon_uBS2lf.svg

Modified Paths:
--------------
    trunk/phase3/includes/SkinTemplate.php

Modified: trunk/phase3/includes/SkinTemplate.php
===================================================================
--- trunk/phase3/includes/SkinTemplate.php      2011-11-17 10:06:56 UTC (rev 
103449)
+++ trunk/phase3/includes/SkinTemplate.php      2011-11-17 10:10:40 UTC (rev 
103450)
@@ -814,7 +814,7 @@
                wfRunHooks( 'SkinTemplatePreventOtherActiveTabs', array( 
&$this, &$preventActiveTabs ) );
 
                // Checks if page is some kind of content
-               if( !$title->isSpecialPage() ) {
+               if( $title->canExist() ) {
                        // Gets page objects for the related namespaces
                        $subjectPage = $title->getSubjectPage();
                        $talkPage = $title->getTalkPage();


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to