mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
#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:
parent
2a38655bd0
commit
cd42f6d8e2
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue