diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-14 18:43:10 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-14 18:43:10 +0000 |
commit | 51a16d38b823262a01efbef1f79702395a886194 (patch) | |
tree | 04d37a58927a186cb0cd1807be8ec7a8fd06a43e /core | |
parent | 1071b914093b9a4e1d912a8e9f88b700b8d081f9 (diff) |
style fixes
Diffstat (limited to 'core')
-rw-r--r-- | core/helpers/MY_url.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/helpers/MY_url.php b/core/helpers/MY_url.php index 00cfd032..5f683638 100644 --- a/core/helpers/MY_url.php +++ b/core/helpers/MY_url.php @@ -59,7 +59,8 @@ class url extends url_Core { * Just like url::file() except that it returns an absolute URI */ static function abs_file($path) { - return url::base(false, (empty($_SERVER['HTTPS']) OR $_SERVER['HTTPS'] === 'off') ? 'http' : 'https') . $path; + return url::base( + false, (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === 'off') ? 'http' : 'https') . $path; } /** @@ -67,7 +68,8 @@ class url extends url_Core { * doesn't take a protocol parameter. */ static function abs_site($path) { - return url::site($path, (empty($_SERVER['HTTPS']) OR $_SERVER['HTTPS'] === 'off') ? 'http' : 'https'); + return url::site( + $path, (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === 'off') ? 'http' : 'https'); } /** |