X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRedirect.php;h=1d1df6a043266d58918b242832af39b2521e0df4;hb=cbc23bd4dae818680950d3ddb59939e1eb3b0074;hp=206e400662b9b8d76126190cc802fdc42c083f39;hpb=3071f1fad720f1773864621158a0c59b73124896;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRedirect.php b/includes/specials/SpecialRedirect.php index 206e400662..1d1df6a043 100644 --- a/includes/specials/SpecialRedirect.php +++ b/includes/specials/SpecialRedirect.php @@ -99,7 +99,7 @@ class SpecialRedirect extends FormSpecialPage { return null; } // Default behavior: Use the direct link to the file. - $url = $file->getURL(); + $url = $file->getUrl(); $request = $this->getRequest(); $width = $request->getInt( 'width', -1 ); $height = $request->getInt( 'height', -1 ); @@ -110,7 +110,7 @@ class SpecialRedirect extends FormSpecialPage { // ... and we can if ( $mto && !$mto->isError() ) { // ... change the URL to point to a thumbnail. - $url = $mto->getURL(); + $url = $mto->getUrl(); } } @@ -182,7 +182,7 @@ class SpecialRedirect extends FormSpecialPage { 'log_user_text', ]; - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); // Gets the nested SQL statement which // returns timestamp of the log with the given log ID @@ -272,7 +272,6 @@ class SpecialRedirect extends FormSpecialPage { $url = $this->dispatchLog(); break; default: - $this->getOutput()->setStatusCode( 404 ); $url = null; break; } @@ -353,6 +352,10 @@ class SpecialRedirect extends FormSpecialPage { $form->setMethod( 'get' ); } + protected function getDisplayFormat() { + return 'ooui'; + } + /** * Return an array of subpages that this special page will accept. *