From 38a260b1d707cb9ea4639403ee9a9410bccc1134 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 25 Nov 2008 16:50:29 +0000 Subject: Rename get_absolute_url to abs_current --- core/helpers/MY_url.php | 2 +- modules/atom/libraries/Gallery_Atom_Entry.php | 4 ++-- modules/atom/libraries/Gallery_Atom_Feed.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/helpers/MY_url.php b/core/helpers/MY_url.php index 5095c701..1c40c2bc 100644 --- a/core/helpers/MY_url.php +++ b/core/helpers/MY_url.php @@ -33,7 +33,7 @@ class url extends url_Core { return url::site($path, "http"); } - public static function get_absolute_url() { + public static function abs_current() { return self::abs_site(url::current()); } } diff --git a/modules/atom/libraries/Gallery_Atom_Entry.php b/modules/atom/libraries/Gallery_Atom_Entry.php index e7d0ea8b..ee5abd07 100644 --- a/modules/atom/libraries/Gallery_Atom_Entry.php +++ b/modules/atom/libraries/Gallery_Atom_Entry.php @@ -27,10 +27,10 @@ class Gallery_Atom_Entry_Core extends Atom_Entry { parent::__construct("entry"); /* Set feed ID and self link. */ - $this->id(html::specialchars(url::get_absolute_url())); + $this->id(html::specialchars(url::abs_current())); $this->link() ->rel("self") - ->href(url::get_absolute_url()); + ->href(url::abs_current()); } public function link() { diff --git a/modules/atom/libraries/Gallery_Atom_Feed.php b/modules/atom/libraries/Gallery_Atom_Feed.php index 61fba5b4..ba44f15a 100644 --- a/modules/atom/libraries/Gallery_Atom_Feed.php +++ b/modules/atom/libraries/Gallery_Atom_Feed.php @@ -27,10 +27,10 @@ class Gallery_Atom_Feed_Core extends Atom_Feed { parent::__construct("feed"); /* Set feed ID and self link. */ - $this->id(html::specialchars(url::get_absolute_url())); + $this->id(html::specialchars(url::abs_current())); $this->link() ->rel("self") - ->href(url::get_absolute_url()); + ->href(url::abs_current()); } public function link() { -- cgit v1.2.3