Page MenuHomeWickedGov Phorge

SpecialCaptcha.php
No OneTemporary

Size
636 B
Referenced Files
None
Subscribers
None

SpecialCaptcha.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();
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 17:04 (8 h, 4 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
10/81/16e0d84b73292413ecd5aec2537a
Default Alt Text
SpecialCaptcha.php (636 B)

Event Timeline