API CHANGE Removed deprecated function SiteTree::get_by_url(), please use SiteTree::get_by_link() instead!

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@100492 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2010-03-04 04:26:25 +00:00 committed by Sam Minnee
parent 9f45951a43
commit a9241e3fc4
2 changed files with 1 additions and 12 deletions

View File

@ -1532,17 +1532,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
return trim($t, '-');
}
/**
* @deprecated 2.4 Use {@link SiteTree::get_by_link()}.
*/
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.

View File

@ -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() {