Index: trunk/phase3/includes/Math.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | if( !$this->_recall() ) { |
49 | 49 | # Ensure that the temp and output directories are available before continuing... |
50 | 50 | if( !file_exists( $wgTmpDirectory ) ) { |
51 | | - if( !@mkdir( $wgTmpDirectory ) ) { |
| 51 | + if( !wfMkdirParents( $wgTmpDirectory ) ) { |
52 | 52 | return $this->_error( 'math_bad_tmpdir' ); |
53 | 53 | } |
54 | 54 | } elseif( !is_dir( $wgTmpDirectory ) || !is_writable( $wgTmpDirectory ) ) { |