http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90923

Revision: 90923
Author:   reedy
Date:     2011-06-27 23:20:31 +0000 (Mon, 27 Jun 2011)
Log Message:
-----------
Don't put a quoted/regexed prefix back out again

Modified Paths:
--------------
    trunk/phase3/includes/specials/SpecialAllmessages.php

Modified: trunk/phase3/includes/specials/SpecialAllmessages.php
===================================================================
--- trunk/phase3/includes/specials/SpecialAllmessages.php       2011-06-27 
23:16:19 UTC (rev 90922)
+++ trunk/phase3/includes/specials/SpecialAllmessages.php       2011-06-27 
23:20:31 UTC (rev 90923)
@@ -88,7 +88,7 @@
  */
 class AllmessagesTablePager extends TablePager {
 
-       protected $filter, $prefix, $langcode;
+       protected $filter, $prefix, $langcode, $displayPrefix;
 
        public $mLimitsShown;
 
@@ -132,8 +132,10 @@
                $prefix = $wgLang->ucfirst( $wgRequest->getVal( 'prefix', '' ) 
);
                $prefix = $prefix != '' ? Title::makeTitleSafe( NS_MEDIAWIKI, 
$wgRequest->getVal( 'prefix', null ) ) : null;
                if( $prefix !== null ){
-                       $this->prefix = '/^' . preg_quote( $prefix->getDBkey() 
) . '/i';
+                       $this->displayPrefix = $prefix->getDBkey();
+                       $this->prefix = '/^' . preg_quote( $this->displayPrefix 
) . '/i';
                } else {
+                       $this->displayPrefix = false;
                        $this->prefix = false;
                }
                $this->getSkin();


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

Reply via email to