mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-12-23 21:32:49 +00:00
92bc1f3d2f
Changes to the use statements done automatically via script Addition of missing use statements done manually Change-Id: Id44f211320e56bc83e4c8f243369dc4eb562cf37
31 lines
636 B
PHP
31 lines
636 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\ConfirmEdit\Specials;
|
|
|
|
use MediaWiki\Extension\ConfirmEdit\Hooks;
|
|
use MediaWiki\SpecialPage\UnlistedSpecialPage;
|
|
|
|
class SpecialCaptcha extends UnlistedSpecialPage {
|
|
public function __construct() {
|
|
parent::__construct( 'Captcha' );
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function execute( $par ) {
|
|
$this->setHeaders();
|
|
|
|
$instance = Hooks::getInstance();
|
|
|
|
if ( $par === 'image' && method_exists( $instance, 'showImage' ) ) {
|
|
// @todo: Do this in a more OOP way
|
|
/** @phan-suppress-next-line PhanUndeclaredMethod */
|
|
$instance->showImage();
|
|
return;
|
|
}
|
|
|
|
$instance->showHelp();
|
|
}
|
|
}
|