[Cs-content-commits] SF.net SVN: cs-content:[502] trunk/current/cs_fileSystem.class.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
From: <cra...@us...> - 2011-10-26 05:18:09
|
Revision: 502 http://cs-content.svn.sourceforge.net/cs-content/?rev=502&view=rev Author: crazedsanity Date: 2011-10-26 05:18:03 +0000 (Wed, 26 Oct 2011) Log Message: ----------- Fix handling modes for mkdir(). Modified Paths: -------------- trunk/current/cs_fileSystem.class.php Modified: trunk/current/cs_fileSystem.class.php =================================================================== --- trunk/current/cs_fileSystem.class.php 2011-10-24 16:08:38 UTC (rev 501) +++ trunk/current/cs_fileSystem.class.php 2011-10-26 05:18:03 UTC (rev 502) @@ -903,8 +903,8 @@ //======================================================================================== public function mkdir($name, $mode=0777) { - if(!is_numeric($mode) || strlen($mode) != 4) { - $mode = 0777; + if(isset($mode)) { + $mode = intval($mode); } $retval = NULL; if(!is_null($name) && strlen($name)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |