From: Moriel Schottlender Date: Thu, 30 Nov 2017 19:10:43 +0000 (-0800) Subject: RCFilters: Followup I75cfb2b56a: Fix function declaration X-Git-Tag: 1.31.0-rc.0~1344^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=a538407bc9a1d11180c8970e20f0f2b5b6c58ea2;p=lhc%2Fweb%2Fwiklou.git RCFilters: Followup I75cfb2b56a: Fix function declaration Bug: T181671 Change-Id: Ie69e9f0f77b2c463bc2e4d41cd9a1b8e87f7efef --- diff --git a/includes/specials/SpecialRecentchangeslinked.php b/includes/specials/SpecialRecentchangeslinked.php index e4cc3d1cf9..2eeeb0b996 100644 --- a/includes/specials/SpecialRecentchangeslinked.php +++ b/includes/specials/SpecialRecentchangeslinked.php @@ -301,10 +301,13 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { * Get a self-referential title object * with consideration to the given subpage. * + * @param string|bool $subpage * @return Title * @since 1.23 */ - public function getPageTitle() { - return parent::getPageTitle( $this->rclTarget ); + public function getPageTitle( $subpage = false ) { + $subpage = $subpage ? $subpage : $this->rclTarget; + + return parent::getPageTitle( $subpage ); } }