mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
4e6911610a
commit
a920b7689f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user