Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/96963


Change subject: Rename Special:History to Special:MobileHistory
......................................................................

Rename Special:History to Special:MobileHistory

Allows core to use Special:History (see 
I612df6e33c74527c9a3a0af5a6c66cd977dc7344)
Also adds the missing alias

Change-Id: I11b6eb72793d2d885e0ce8f70bf780386b30daed
---
M MobileFrontend.alias.php
M MobileFrontend.php
M includes/MobileFrontend.hooks.php
R includes/specials/SpecialMobileHistory.php
4 files changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/63/96963/1

diff --git a/MobileFrontend.alias.php b/MobileFrontend.alias.php
index 708174d..bf7cf65 100644
--- a/MobileFrontend.alias.php
+++ b/MobileFrontend.alias.php
@@ -17,6 +17,7 @@
        'MobileMenu' => array( 'MobileMenu' ),
        'Nearby' => array( 'Nearby' ),
        'UserProfile' => array( 'UserProfile' ),
+       'MobileHistory' => array( 'MobileHistory' ),
 );
 
 /** Arabic (العربية) */
diff --git a/MobileFrontend.php b/MobileFrontend.php
index 38064f0..2e13aea 100644
--- a/MobileFrontend.php
+++ b/MobileFrontend.php
@@ -64,7 +64,7 @@
 
        'SpecialUploads' => 'specials/SpecialUploads',
        'SpecialUserProfile' => 'specials/SpecialUserProfile',
-       'SpecialHistory' => 'specials/SpecialHistory',
+       'SpecialMobileHistory' => 'specials/SpecialMobileHistory',
        'SpecialMobileUserlogin' => 'specials/SpecialMobileUserlogin',
        'SpecialMobileDiff' => 'specials/SpecialMobileDiff',
        'SpecialMobileOptions' => 'specials/SpecialMobileOptions',
diff --git a/includes/MobileFrontend.hooks.php 
b/includes/MobileFrontend.hooks.php
index f511b75..7809c30 100644
--- a/includes/MobileFrontend.hooks.php
+++ b/includes/MobileFrontend.hooks.php
@@ -290,7 +290,7 @@
                        }
 
                        $list['UserProfile'] = 'SpecialUserProfile';
-                       $list['History'] = 'SpecialHistory';
+                       $list['History'] = 'SpecialMobileHistory';
                }
                return true;
        }
diff --git a/includes/specials/SpecialHistory.php 
b/includes/specials/SpecialMobileHistory.php
similarity index 97%
rename from includes/specials/SpecialHistory.php
rename to includes/specials/SpecialMobileHistory.php
index 7fc0224..a272808 100644
--- a/includes/specials/SpecialHistory.php
+++ b/includes/specials/SpecialMobileHistory.php
@@ -1,6 +1,6 @@
 <?php
 
-class SpecialHistory extends MobileSpecialPageFeed {
+class SpecialMobileHistory extends MobileSpecialPageFeed {
        const LIMIT = 50;
        protected $mode = 'beta';
 
@@ -8,7 +8,7 @@
        protected $title;
 
        public function __construct() {
-               parent::__construct( 'History' );
+               parent::__construct( 'MobileHistory' );
        }
 
        public function executeWhenAvailable( $par = '' ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/96963
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I11b6eb72793d2d885e0ce8f70bf780386b30daed
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to