diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-25 15:54:45 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-25 15:54:45 +0000 |
commit | 102f0f566b930f9c5030df47f198f0e1627ce317 (patch) | |
tree | 9ef6a5a24d501af431166113f1a1095a6d33d209 /modules/atom/helpers/atom.php | |
parent | 2c20fed373e54bfc67f878a1f5d93d0cd2fc146e (diff) |
Normalize atom url generation
Diffstat (limited to 'modules/atom/helpers/atom.php')
-rw-r--r-- | modules/atom/helpers/atom.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/modules/atom/helpers/atom.php b/modules/atom/helpers/atom.php index fdc21053..b1bea5d3 100644 --- a/modules/atom/helpers/atom.php +++ b/modules/atom/helpers/atom.php @@ -33,20 +33,4 @@ class atom_Core { public static function unix_to_internet_timestamp($timestamp) { return sprintf("%sZ", date("Y-m-d\TH:i:s", $timestamp)); } - - /** - * @todo can this be normalized with the code in MY_url - */ - public static function get_absolute_url() { - $base_url = atom::get_base_url(); - $absolute_url = $base_url . url::current(true); - return $absolute_url; - } - - /** - * @todo can this be normalized with the code in MY_url - */ - public static function get_base_url() { - return sprintf("http://%s%s", $_SERVER["HTTP_HOST"], url::base(true)); - } } |