From 582b8db8e8b356466aa3b815ee6d063417775ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Wed, 14 Dec 2016 11:55:12 +0100 Subject: [PATCH] Maybe no longer needed: converted $a->get_baseurl() to App::get_baseurl(). #3010 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- boot.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/boot.php b/boot.php index fda6b7d7bb..b282f8d48e 100644 --- a/boot.php +++ b/boot.php @@ -1478,10 +1478,11 @@ function clean_urls() { } function z_path() { - $a = get_app(); - $base = $a->get_baseurl(); + $base = App::get_baseurl(); + if(! clean_urls()) $base .= '/?q='; + return $base; } @@ -1491,10 +1492,10 @@ function z_path() { * @see App::get_baseurl() * * @return string + * @TODO Maybe super-flous and deprecated? Seems to only wrap App::get_baseurl() */ function z_root() { - $a = get_app(); - return $a->get_baseurl(); + return App::get_baseurl(); } /**