2015-05-21 15:41:49 +00:00
|
|
|
<?php
|
2018-06-15 21:08:14 +00:00
|
|
|
|
|
|
|
class SpecialCaptcha extends UnlistedSpecialPage {
|
2015-05-21 15:41:49 +00:00
|
|
|
public function __construct() {
|
|
|
|
parent::__construct( 'Captcha' );
|
|
|
|
}
|
|
|
|
|
2020-04-14 23:29:18 +00:00
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
2018-06-15 21:08:14 +00:00
|
|
|
public function execute( $par ) {
|
2015-05-21 15:41:49 +00:00
|
|
|
$this->setHeaders();
|
|
|
|
|
|
|
|
$instance = ConfirmEditHooks::getInstance();
|
|
|
|
|
2020-02-03 14:36:31 +00:00
|
|
|
if ( $par === 'image' && method_exists( $instance, 'showImage' ) ) {
|
|
|
|
// @todo: Do this in a more OOP way
|
|
|
|
/** @phan-suppress-next-line PhanUndeclaredMethod */
|
|
|
|
$instance->showImage();
|
|
|
|
return;
|
2015-05-21 15:41:49 +00:00
|
|
|
}
|
2020-02-03 14:36:31 +00:00
|
|
|
|
|
|
|
$instance->showHelp();
|
2015-05-21 15:41:49 +00:00
|
|
|
}
|
|
|
|
}
|