X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRedirect.php;h=f05dacbcf888b193de0358f716925847088ae81b;hb=0fc6ee8723bf1cd9c6874e649af366f783b355fb;hp=2681207f6b2d5ce99003f4440dfc0401ad3c7d98;hpb=ea4340e126eb2657cc878af74d53b9991844fb6b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRedirect.php b/includes/specials/SpecialRedirect.php index 2681207f6b..f05dacbcf8 100644 --- a/includes/specials/SpecialRedirect.php +++ b/includes/specials/SpecialRedirect.php @@ -166,6 +166,7 @@ class SpecialRedirect extends FormSpecialPage { } if ( !is_null( $this->mValue ) ) { $this->getOutput()->setStatusCode( 404 ); + // Message: redirect-not-exists $msg = $this->getMessagePrefix() . '-not-exists'; return Status::newFatal( $msg ); } @@ -176,6 +177,7 @@ class SpecialRedirect extends FormSpecialPage { $mp = $this->getMessagePrefix(); $ns = array( // subpage => message + // Messages: redirect-user, redirect-revision, redirect-file 'user' => $mp . '-user', 'revision' => $mp . '-revision', 'file' => $mp . '-file', @@ -183,7 +185,7 @@ class SpecialRedirect extends FormSpecialPage { $a = array(); $a['type'] = array( 'type' => 'select', - 'label-message' => $mp . '-lookup', + 'label-message' => $mp . '-lookup', // Message: redirect-lookup 'options' => array(), 'default' => current( array_keys( $ns ) ), ); @@ -193,7 +195,7 @@ class SpecialRedirect extends FormSpecialPage { } $a['value'] = array( 'type' => 'text', - 'label-message' => $mp . '-value' + 'label-message' => $mp . '-value' // Message: redirect-value ); // set the defaults according to the parsed subpage path if ( !empty( $this->mType ) ) { @@ -220,7 +222,8 @@ class SpecialRedirect extends FormSpecialPage { protected function alterForm( HTMLForm $form ) { /* display summary at top of page */ $this->outputHeader(); - /* tweak label on submit button */ + // tweak label on submit button + // Message: redirect-submit $form->setSubmitTextMsg( $this->getMessagePrefix() . '-submit' ); /* submit form every time */ $form->setMethod( 'get' );