Skip to content

Commit

Permalink
修改获取Public目录路径异常
Browse files Browse the repository at this point in the history
  • Loading branch information
xcg340122 committed Feb 3, 2018
1 parent a0d2934 commit ce21a93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Framework/Library/Process/Auxiliary.class.php
Expand Up @@ -224,6 +224,7 @@ static public function getPublic()
{
$scriptName = str_replace('\\','/',dirname($_SERVER['SCRIPT_NAME']));
if(empty($scriptName)) $scriptName = '/';
if(substr($scriptName, -1) != '/') $scriptName .= '/';
return rtrim($scriptName).'Public/';
}
}

0 comments on commit ce21a93

Please sign in to comment.