Merge pull request #3048 from ddorian1/develop

Fix test for static calls with PHP 7
This commit is contained in:
Michael Vogel 2016-12-29 11:14:14 +01:00 committed by GitHub
commit 1d0cb0f7d2

View File

@ -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));
}