From 721693a52a9c872be4dd67c58bcdfd48a9f080f1 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 25 Jul 2011 13:25:47 -0700 Subject: [PATCH] Continuing work on URL class. --- system/url.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/system/url.php b/system/url.php index f97e6a7a..0346f019 100644 --- a/system/url.php +++ b/system/url.php @@ -21,10 +21,8 @@ class URL { $base = Config::get('application.url').'/'.Config::get('application.index'); - // If the URL is to an asset such as an image, we do not need to go through the front controller. $base = ($asset) ? str_replace('/'.Config::get('application.index'), '', $base) : $base; - // If the resource should be accessed over HTTPS, change the protocol in the URL. $base = ($https and strpos($base, 'http://') === 0) ? 'https://'.substr($base, 7) : $base; return $base.'/'.ltrim($url, '/');