addDescription( "Counts the number of fancy aptchas in storage" ); $this->requireExtension( "FancyCaptcha" ); } public function execute() { $instance = ConfirmEditHooks::getInstance(); if ( !( $instance instanceof FancyCaptcha ) ) { $this->error( "\$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;