From e35fb6e1c6897b606131733d67b90861bad02918 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 11 Aug 2008 15:44:59 +0000 Subject: [PATCH] More of the ongoing war against mkdir() in favor of wfMkdirParents() --- includes/Math.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ) { -- 2.20.1