*/
private $dbClone;
- /**
- * @var DjVuSupport
- */
- private $djVuSupport;
-
/**
* @var TidySupport
*/
$this->runDisabled = !empty( $options['run-disabled'] );
$this->runParsoid = !empty( $options['run-parsoid'] );
- $this->djVuSupport = new DjVuSupport();
$this->tidySupport = new TidySupport( !empty( $options['use-tidy-config'] ) );
if ( !$this->tidySupport->isEnabled() ) {
$this->recorder->warning(
}
$this->setupDone[$funcName] = true;
return function () use ( $funcName ) {
- wfDebug( "markSetupDone unmarked $funcName" );
$this->setupDone[$funcName] = false;
};
}
$user = $context->getUser();
$options = ParserOptions::newFromContext( $context );
- if ( isset( $opts['djvu'] ) ) {
- if ( !$this->djVuSupport->isEnabled() ) {
- $this->recorder->skipped( $test,
- 'djvu binaries do not exist or are not executable' );
- return false;
- }
- }
-
if ( isset( $opts['tidy'] ) ) {
if ( !$this->tidySupport->isEnabled() ) {
$this->recorder->skipped( $test, 'tidy extension is not installed' );
};
// Set content language. This invalidates the magic word cache and title services
- wfDebug( "Setting up language $langCode" );
$lang = Language::factory( $langCode );
$setup['wgContLang'] = $lang;
$reset = function () {
*/
class MockDjVuHandler extends DjVuHandler {
+ function isEnabled() {
+ return true;
+ }
+
function doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 ) {
if ( !$this->normaliseParams( $image, $params ) ) {
return new TransformParameterError( $params );