X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialBrokenRedirects.php;h=1bbdbeab9318b02ba18b37461b1747d7f6e568f2;hb=95955dc147678f1fcf190eedd6f4474a235ffe78;hp=e6fd58d22b962aadb8559fb66652b948a752f7bd;hpb=fb096ec3395cdb08723b9dbdcb8ecebe1b950396;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialBrokenRedirects.php b/includes/specials/SpecialBrokenRedirects.php index e6fd58d22b..1bbdbeab93 100644 --- a/includes/specials/SpecialBrokenRedirects.php +++ b/includes/specials/SpecialBrokenRedirects.php @@ -28,7 +28,6 @@ * @ingroup SpecialPage */ class BrokenRedirectsPage extends QueryPage { - function __construct( $name = 'BrokenRedirects' ) { parent::__construct( $name ); } @@ -51,6 +50,7 @@ class BrokenRedirectsPage extends QueryPage { function getQueryInfo() { $dbr = wfGetDB( DB_SLAVE ); + return array( 'tables' => array( 'redirect', @@ -92,9 +92,9 @@ class BrokenRedirectsPage extends QueryPage { } /** - * @param $skin Skin - * @param $result - * @return String + * @param Skin $skin + * @param object $result Result row + * @return string */ function formatResult( $skin, $result ) { $fromObj = Title::makeTitle( $result->namespace, $result->title ); @@ -147,8 +147,10 @@ class BrokenRedirectsPage extends QueryPage { ); } - $out .= $this->msg( 'parentheses' )->rawParams( $this->getLanguage()->pipeList( $links ) )->escaped(); + $out .= $this->msg( 'parentheses' )->rawParams( $this->getLanguage() + ->pipeList( $links ) )->escaped(); $out .= " {$arr} {$to}"; + return $out; }