X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRedirect.php;h=3273046f57cf927cc0d10ddf4ae46b1fe3a53871;hb=cc4115e87f1ffec8f751e783ad9404782b23a0f3;hp=12959a3e6a716eaaac45e50977e37b39dbd12262;hpb=4de8aca50b9b7806df2c7dffa85b4260c62b5a9f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRedirect.php b/includes/specials/SpecialRedirect.php index 12959a3e6a..3273046f57 100644 --- a/includes/specials/SpecialRedirect.php +++ b/includes/specials/SpecialRedirect.php @@ -33,16 +33,18 @@ class SpecialRedirect extends FormSpecialPage { /** * The type of the redirect (user/file/revision) * + * Example value: `'user'` + * * @var string $mType - * @example 'user' */ protected $mType; /** * The identifier/value for the redirect (which id, which file) * + * Example value: `'42'` + * * @var string $mValue - * @example '42' */ protected $mValue; @@ -182,7 +184,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 @@ -352,6 +354,10 @@ class SpecialRedirect extends FormSpecialPage { $form->setMethod( 'get' ); } + protected function getDisplayFormat() { + return 'ooui'; + } + /** * Return an array of subpages that this special page will accept. *