jenkins-bot has submitted this change and it was merged.

Change subject: Restore b/c for pre-1.23 MediaWiki versions
......................................................................


Restore b/c for pre-1.23 MediaWiki versions

Change-Id: Ibcc48b519271645f85f186ecb20fc6d2854aee06
Follows-Up: I67701856297927b94aa443a78376bae7d7860def
---
M special/SpecialAbuseFilter.php
M special/SpecialAbuseLog.php
2 files changed, 18 insertions(+), 0 deletions(-)

Approvals:
  Hoo man: Looks good to me, approved
  Siebrand: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/special/SpecialAbuseFilter.php b/special/SpecialAbuseFilter.php
index 2031db5..4e1decf 100644
--- a/special/SpecialAbuseFilter.php
+++ b/special/SpecialAbuseFilter.php
@@ -7,6 +7,15 @@
                parent::__construct( 'AbuseFilter', 'abusefilter-view' );
        }
 
+       /**
+        * Back-compat function for pre-1.23 MediaWiki versions
+        * @param bool|string $subpage
+        * @return Title
+        */
+       public function getPageTitle( $subpage = false ) {
+               return self::getTitleFor( $this->getName(), $subpage );
+       }
+
        public function execute( $subpage ) {
                $out = $this->getOutput();
                $request = $this->getRequest();
diff --git a/special/SpecialAbuseLog.php b/special/SpecialAbuseLog.php
index bde06a1..30f8443 100644
--- a/special/SpecialAbuseLog.php
+++ b/special/SpecialAbuseLog.php
@@ -19,6 +19,15 @@
                parent::__construct( 'AbuseLog', 'abusefilter-log' );
        }
 
+       /**
+        * Back-compat function for pre-1.23 MediaWiki versions
+        * @param bool|string $subpage
+        * @return Title
+        */
+       public function getPageTitle( $subpage = false ) {
+               return self::getTitleFor( $this->getName(), $subpage );
+       }
+
        public function execute( $parameter ) {
                $out = $this->getOutput();
                $request = $this->getRequest();

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibcc48b519271645f85f186ecb20fc6d2854aee06
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Hoo man <h...@online.de>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to