From a920b7689fc9660dedee3d54cea6e2dac9e1f24b Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 15 Oct 2009 22:21:02 +0000 Subject: [PATCH] BUGFIX: Fix image tracking not working cross subsite (from r88008) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89177 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- filesystem/File.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/filesystem/File.php b/filesystem/File.php index 9f3dabd45..6bbb3a371 100755 --- a/filesystem/File.php +++ b/filesystem/File.php @@ -376,6 +376,8 @@ class File extends DataObject { * Rewrite links to the $old file to now point to the $new file */ protected function updateLinks($old, $new) { + if(class_exists('Subsite')) Subsite::disable_subsite_filter(true); + $pages = $this->BackLinkTracking(); if($pages) { @@ -388,6 +390,8 @@ class File extends DataObject { } } } + + if(class_exists('Subsite')) Subsite::disable_subsite_filter(false); } function setParentID($parentID) {