Fix test for static calls with PHP 7
This commit is contained in:
parent
94027f19b4
commit
8e2fc0f8a9
1 changed files with 2 additions and 2 deletions
4
boot.php
4
boot.php
|
@ -809,7 +809,7 @@ class App {
|
|||
function get_baseurl($ssl = false) {
|
||||
|
||||
// Is the function called statically?
|
||||
if (!is_object($this)) {
|
||||
if (!(isset($this) && get_class($this) == __CLASS__)) {
|
||||
return self::$a->get_baseurl($ssl);
|
||||
}
|
||||
|
||||
|
@ -1053,7 +1053,7 @@ class App {
|
|||
function remove_baseurl($orig_url){
|
||||
|
||||
// Is the function called statically?
|
||||
if (!is_object($this)) {
|
||||
if (!(isset($this) && get_class($this) == __CLASS__)) {
|
||||
return(self::$a->remove_baseurl($orig_url));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue