mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2025-01-07 12:34:07 +00:00
7f76ef9924
Change-Id: If382ed4440aa96dcb32a8aba6726cc7e78f0e0a7
26 lines
540 B
PHP
26 lines
540 B
PHP
<?php
|
|
|
|
class SpecialCaptcha extends UnlistedSpecialPage {
|
|
public function __construct() {
|
|
parent::__construct( 'Captcha' );
|
|
}
|
|
|
|
public function execute( $par ) {
|
|
$this->setHeaders();
|
|
|
|
$instance = ConfirmEditHooks::getInstance();
|
|
|
|
switch ( $par ) {
|
|
case "image":
|
|
if ( method_exists( $instance, 'showImage' ) ) {
|
|
// @todo: Do this in a more OOP way
|
|
/** @phan-suppress-next-line PhanUndeclaredMethod */
|
|
return $instance->showImage();
|
|
}
|
|
case "help":
|
|
default:
|
|
return $instance->showHelp();
|
|
}
|
|
}
|
|
}
|