X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRedirect.php;h=3273046f57cf927cc0d10ddf4ae46b1fe3a53871;hb=4d25eb68a57363dcb9e9be981d497cccf50a8c0b;hp=80dc7977a19b7b0da3ba50b9840e0b9051750738;hpb=e523771f05050bf415da36b07d9a0fa0e2150d28;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRedirect.php b/includes/specials/SpecialRedirect.php index 80dc7977a1..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