From: Chad Horohoe Date: Mon, 11 Aug 2008 15:44:59 +0000 (+0000) Subject: More of the ongoing war against mkdir() in favor of wfMkdirParents() X-Git-Tag: 1.31.0-rc.0~45952 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=e35fb6e1c6897b606131733d67b90861bad02918;p=lhc%2Fweb%2Fwiklou.git More of the ongoing war against mkdir() in favor of wfMkdirParents() --- diff --git a/includes/Math.php b/includes/Math.php index 871e9fc3a2..3f4cdd4e47 100644 --- a/includes/Math.php +++ b/includes/Math.php @@ -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 ) ) {