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
This commit is contained in:
Sam Minnee 2009-10-15 22:21:02 +00:00
parent 4e6911610a
commit a920b7689f

View File

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