More of the ongoing war against mkdir() in favor of wfMkdirParents()
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 11 Aug 2008 15:44:59 +0000 (15:44 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 11 Aug 2008 15:44:59 +0000 (15:44 +0000)
includes/Math.php

index 871e9fc..3f4cdd4 100644 (file)
@@ -47,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 ) ) {