Make WantedQueryPage::makeWlhLink protected
authorOstrzyciel <magwac69@gmail.com>
Wed, 28 Aug 2019 17:12:36 +0000 (19:12 +0200)
committerOstrzyciel <magwac69@gmail.com>
Wed, 28 Aug 2019 17:13:40 +0000 (19:13 +0200)
Bug: T231481
Change-Id: I6ace1bb99879ec8256b29f86220e8fc2e785f593

includes/specialpage/WantedQueryPage.php

index 83ffe40..72fe57d 100644 (file)
@@ -116,7 +116,7 @@ abstract class WantedQueryPage extends QueryPage {
         * @param object $result Result row
         * @return string
         */
-       private function makeWlhLink( $title, $result ) {
+       protected function makeWlhLink( $title, $result ) {
                $wlh = SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() );
                $label = $this->msg( 'nlinks' )->numParams( $result->value )->text();
                return $this->getLinkRenderer()->makeLink( $wlh, $label );