From 046dd623be61d2cea98b29f1e38a0aff9668ac85 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 03:57:46 +0000 Subject: [PATCH] API CHANGE Removed deprecated function SiteTree::get_by_url(), please use SiteTree::get_by_link() instead! (from r100492) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105578 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/SiteTree.php | 19 ------------------- core/model/Translatable.php | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index a21bf6c38..e81ede5e5 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1573,25 +1573,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid return ($liveRecord) ? $liveRecord->URLSegment : null; } - /** - * Return the SiteTree object with the given URL segment. - * - * @deprecated 2.4 Use {@link SiteTree::get_by_link()}. - * - * @param string $urlSegment The URL segment, eg 'home' - * @param string $extraFilter - * @param boolean $cache - * @param string $orderby - * @return SiteTree The object with the given URL segment - */ - public static function get_by_url($link) { - user_error ( - 'SiteTree::get_by_url() is deprecated, please use SiteTree::get_by_link()', E_USER_NOTICE - ); - - return self::get_by_link($link); - } - /** * Rewrite a file URL on this page, after its been renamed. * Triggers the onRenameLinkedAsset action on extensions. diff --git a/core/model/Translatable.php b/core/model/Translatable.php index a2bf00ad2..a07c12b2f 100755 --- a/core/model/Translatable.php +++ b/core/model/Translatable.php @@ -749,7 +749,7 @@ class Translatable extends DataObjectDecorator implements PermissionProvider { * but this involves complicated special cases in AllChildrenIncludingDeleted(). * * {@link SiteTree->onBeforeWrite()} will ensure that each translation will get - * a unique URL across languages, by means of {@link SiteTree::get_by_url()} + * a unique URL across languages, by means of {@link SiteTree::get_by_link()} * and {@link Translatable->alternateGetByURL()}. */ function onBeforeWrite() {