From f2ed229be435b482a90f3e092e4f6be9a0d59ecf Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 21 Mar 2011 19:58:01 +1300 Subject: [PATCH] API CHANGE: Removed context object - it's a hack. --- code/model/SiteTree.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index 0e59106a..b1ef1152 100644 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -1388,16 +1388,12 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid $this->URLSegment = $segment; } - DataObject::set_context_obj($this); - // Ensure that this object has a non-conflicting URLSegment value. $count = 2; while(!$this->validURLSegment()) { $this->URLSegment = preg_replace('/-[0-9]+$/', null, $this->URLSegment) . '-' . $count; $count++; } - - DataObject::set_context_obj(null); $this->syncLinkTracking();