Skip to content

Commit

Permalink
baseUrl()函数修改
Browse files Browse the repository at this point in the history
  • Loading branch information
gongwen committed Jul 31, 2015
1 parent 3936534 commit 23d2ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MinPHP/core/function.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function I($val){

//网站基础路径baseUrl
function baseUrl(){
$currentPath = $_SERVER['PHP_SELF'];
$currentPath = $_SERVER['SCRIPT_NAME'];
$pathInfo = pathinfo($currentPath);
$hostName = $_SERVER['HTTP_HOST'];
$protocol = strtolower(substr($_SERVER["SERVER_PROTOCOL"],0,5))=='https://' ? 'https://' : 'http://';
Expand Down

0 comments on commit 23d2ccf

Please sign in to comment.