Browse files

Fix modelizer when try to mkdir

  • Loading branch information...
1 parent ef8934a commit bd6ecaa889229846444e5df64dbb11ecbaf5875f @jtouza committed Feb 13, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 Component/ModelizerProvider.php
View
8 Component/ModelizerProvider.php
@@ -127,10 +127,10 @@ protected function _init($moduleName = null){
'dbTables' => $basePath . "/models/DbTable",
'forms' => $basePath . "/forms"
);
-
- if(!is_dir($this->_paths['dbTables'])) { mkdir($this->_paths['dbTables']);}
- if(!is_dir($this->_paths['mappers'])) { mkdir($this->_paths['mappers']);}
- if(!is_dir($this->_paths['forms'])) { mkdir($this->_paths['forms']);}
+
+ if(!is_dir($this->_paths['dbTables'])) { mkdir($this->_paths['dbTables'], 0775, true);}
+ if(!is_dir($this->_paths['mappers'])) { mkdir($this->_paths['mappers'], 0775, true);}
+ if(!is_dir($this->_paths['forms'])) { mkdir($this->_paths['forms'], 0775, true);}
}
/**

0 comments on commit bd6ecaa

Please sign in to comment.