#2871, fixing mode in Folder

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5386 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-07-07 19:30:34 +00:00
parent 2a38655bd0
commit cd42f6d8e2

View file

@ -60,7 +60,7 @@ class Folder extends Object{
* @var boolean * @var boolean
* @access public * @access public
*/ */
var $mode = '755'; var $mode = 0755;
/** /**
* holds messages from last method. * holds messages from last method.
* *
@ -89,7 +89,7 @@ class Folder extends Object{
} }
if ($mode) { if ($mode) {
$this->mode = strval($mode); $this->mode = intval($mode, 8);
} }
if (!file_exists($path) && $create == true) { if (!file_exists($path) && $create == true) {