<?php
/**
* Contain everything related to <math> </math> parsing
+ * @file
+ * @ingroup Parser
*/
/**
* to rasterized PNG and HTML and MathML approximations. An appropriate
* rendering form is picked and returned.
*
- * by Tomasz Wegrzanowski, with additions by Brion Vibber (2003, 2004)
- *
+ * @author Tomasz Wegrzanowski, with additions by Brion Vibber (2003, 2004)
+ * @ingroup Parser
*/
class MathRenderer {
var $mode = MW_MATH_MODERN;
if( !$this->_recall() ) {
# Ensure that the temp and output directories are available before continuing...
if( !file_exists( $wgTmpDirectory ) ) {
- if( !@mkdir( $wgTmpDirectory ) ) {
+ if( !wfMkdirParents( $wgTmpDirectory ) ) {
return $this->_error( 'math_bad_tmpdir' );
}
} elseif( !is_dir( $wgTmpDirectory ) || !is_writable( $wgTmpDirectory ) ) {
'math_html_conservativeness' => $this->conservativeness,
'math_html' => $this->html,
'math_mathml' => $this->mathml,
- ), $fname, array( 'IGNORE' )
+ ), $fname
);
}