Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
修复php5.5及以下版本代码自动生成报错bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuan1994 committed Dec 13, 2016
1 parent a2b8a27 commit 2768115
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extend/Generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ public function run($data, $option = 'all')
* 检查当前模块目录是否可写
* @return bool
*/
public static function checkWritable($path = APP_PATH . 'admin' . DS)
public static function checkWritable($path = '')
{
try {
$path = $path ? $path : APP_PATH . 'admin' . DS;
$testFile = $path . "bulid.test";
if (!file_put_contents($testFile, "test")) {
return false;
Expand Down

0 comments on commit 2768115

Please sign in to comment.