mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-15 11:59:33 +00:00
d648372f7f
Change-Id: Idc03460327095e19438fd9a3a542bf4229db4be2
26 lines
503 B
PHP
26 lines
503 B
PHP
<?php
|
|
|
|
class SpecialCaptcha extends UnlistedSpecialPage {
|
|
public function __construct() {
|
|
parent::__construct( 'Captcha' );
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function execute( $par ) {
|
|
$this->setHeaders();
|
|
|
|
$instance = ConfirmEditHooks::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();
|
|
}
|
|
}
|