mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Improve code style
This commit is contained in:
parent
509accc421
commit
92e9277d20
1 changed files with 1 additions and 0 deletions
|
@ -246,6 +246,7 @@ class CakeRequest implements ArrayAccess {
|
|||
* @return string URI The CakePHP request path that is being accessed.
|
||||
*/
|
||||
protected function _url() {
|
||||
$uri = '';
|
||||
if (!empty($_SERVER['PATH_INFO'])) {
|
||||
return $_SERVER['PATH_INFO'];
|
||||
} elseif (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], '://') === false) {
|
||||
|
|
Loading…
Reference in a new issue