/** @var bool Whether or not to remove <nowiki> tags in the expanded wikitext */
protected $removeNowiki;
- /** @var maximum size in bytes to include. 50MB allows fixing those huge pages */
+ /** @var int Maximum size in bytes to include. 50MB allows fixing those huge pages */
const MAX_INCLUDE_SIZE = 50000000;
function __construct() {
* Show the special page
*/
function execute( $subpage ) {
- global $wgParser, $wgUseTidy, $wgAlwaysUseTidy;
+ global $wgParser;
$this->setHeaders();
);
}
- if ( ( $wgUseTidy && $options->getTidy() ) || $wgAlwaysUseTidy ) {
+ $config = $this->getConfig();
+ if ( ( $config->get( 'UseTidy' ) && $options->getTidy() ) || $config->get( 'AlwaysUseTidy' ) ) {
$tmp = MWTidy::tidy( $tmp );
}