Commit 00b512a8 authored by Taylor Otwell's avatar Taylor Otwell

remove typo in method comment.

parent 2c29e49f
...@@ -22,7 +22,7 @@ class URL { ...@@ -22,7 +22,7 @@ class URL {
// By removing the basename of the script, we should be left with the path // By removing the basename of the script, we should be left with the path
// in which the framework is installed. For example, if the framework is // in which the framework is installed. For example, if the framework is
// installed to http://localhost/laravel/public, the path we'll get from // installed to http://localhost/laravel/public, the path we'll get from
// from this statement will be "/laravel/public". // this statement will be "/laravel/public".
$path = str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']); $path = str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
return rtrim($protocol.$_SERVER['HTTP_HOST'].$path, '/'); return rtrim($protocol.$_SERVER['HTTP_HOST'].$path, '/');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment