addDescription( "Counts the number of fancy aptchas in storage" ); $this->requireExtension( "FancyCaptcha" ); } public function execute() { $instance = Hooks::getInstance(); if ( !( $instance instanceof FancyCaptcha ) ) { $this->fatalError( "\$wgCaptchaClass is not FancyCaptcha.\n", 1 ); } $countAct = $instance->getCaptchaCount(); $this->output( "Current number of captchas is $countAct.\n" ); } } $maintClass = CountFancyCaptchas::class; require_once RUN_MAINTENANCE_IF_MAIN;