}
public function execute( $par ) {
- global $wgUser, $wgOut, $wgRequest;
+ global $wgUser, $wgRequest;
$this->setHeaders();
}
function showSubpages( $title, $out ) {
- global $wgUser, $wgLang;
+ global $wgLang;
if( !MWNamespace::hasSubpages( $title->getNamespace() ) )
return;
}
public function userCanExecute( User $user ) {
- global $wgPasswordResetRoutes, $wgAuth;
-
$error = $this->canChangePassword( $user );
if ( is_string( $error ) ) {
throw new ErrorPageError( 'internalerror', $error );
* @return Bool
*/
function isListed() {
- global $wgPasswordResetRoutes, $wgAuth, $wgUser;
+ global $wgUser;
if ( $this->canChangePassword( $wgUser ) === true ) {
return parent::isListed();
# Check for database lock
if( wfReadOnly() ) {
throw new ReadOnlyError;
- return;
}
list( $this->target, $this->type ) = SpecialBlock::getTargetAndType( $par, $wgRequest );
$form->prepareForm();
$formResult = $form->tryAuthorizedSubmit();
-
// show the files + form, if there are any, or just say there are none
$refreshHtml = Html::element( 'a',
array( 'href' => $this->getTitle()->getLocalURL() ),