From: Chad Horohoe Date: Tue, 21 Oct 2008 00:39:48 +0000 (+0000) Subject: Use wfMkdirParents() here, rather than 3 mkdir() calls. X-Git-Tag: 1.31.0-rc.0~44662 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=8b8dae7f5352927b617407d57c5fa952b2199453;p=lhc%2Fweb%2Fwiklou.git Use wfMkdirParents() here, rather than 3 mkdir() calls. --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 4cccd3b9c5..71cb336926 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -781,9 +781,7 @@ class ParserTest { wfDebug( "Already exists!\n" ); return $dir; } - mkdir( $dir ); - mkdir( $dir . '/3' ); - mkdir( $dir . '/3/3a' ); + wfMkdirParents( $dir . '/3/3a' ); copy( "$IP/skins/monobook/headbg.jpg", "$dir/3/3a/Foobar.jpg" ); return $dir; }