From 766be1f0510080f279251228816d6cc1e7a297f0 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Thu, 28 Aug 2014 10:23:58 +0000 Subject: [PATCH] Remove unused function "get_app_location" --- src/mibew/libs/common/request.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/mibew/libs/common/request.php b/src/mibew/libs/common/request.php index da1b9417..b8fbc9a2 100644 --- a/src/mibew/libs/common/request.php +++ b/src/mibew/libs/common/request.php @@ -30,15 +30,6 @@ function get_get_param($name, $default = '') return $value; } -function get_app_location($show_host, $is_secure) -{ - if ($show_host) { - return ($is_secure ? "https://" : "http://") . $_SERVER['HTTP_HOST'] . MIBEW_WEB_ROOT; - } else { - return MIBEW_WEB_ROOT; - } -} - function is_secure_request() { return (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443')