* fix the error when create dir.

This commit is contained in:
wangchunsheng
2010-01-01 15:14:56 +00:00
parent 0ecb725420
commit a577321d3b
+1 -1
View File
@@ -123,7 +123,7 @@ class fileModel extends model
private function setSavePath()
{
$this->savePath = $this->app->getAppRoot() . "www/data/upload/{$this->app->company->id}/";
if(!file_exists($this->savePath)) mkdir($this->savePath);
if(!file_exists($this->savePath)) mkdir($this->savePath, 0777, true);
}
/* 设置web访问路径。*/