Bump style version for r39776.
[lhc/web/wiklou.git] / includes / Math.php
index cfed955..3f4cdd4 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 /**
  * Contain everything related to <math> </math> parsing
+ * @file
+ * @ingroup Parser
  */
 
 /**
@@ -8,8 +10,8 @@
  * 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;
@@ -45,7 +47,7 @@ class MathRenderer {
                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 ) ) {
@@ -257,7 +259,7 @@ class MathRenderer {
                                $this->html );
                }
        }
-       
+
        function _attribs( $tag, $defaults=array(), $overrides=array() ) {
                $attribs = Sanitizer::validateTagAttributes( $this->params, $tag );
                $attribs = Sanitizer::mergeAttributes( $defaults, $attribs );
@@ -297,4 +299,3 @@ class MathRenderer {
                return $math->render();
        }
 }
-