Permalink
Browse files

BUGFIX Fixed MigrateSiteTreeLinkingTask not working correctly when CL…

…RF newlines being used
  • Loading branch information...
1 parent fef7c32 commit 01f5b3d212d82320320c55bbf68ee757b827c10f @halkyon halkyon committed Mar 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tasks/MigrateSiteTreeLinkingTask.php
View
4 tasks/MigrateSiteTreeLinkingTask.php
@@ -29,8 +29,8 @@ public function run($request) {
$linked = DataObject::get_by_id('SiteTree', $childID);
// TOOD: Replace in all HTMLText fields
- $page->Content = preg_replace (
- "/href *= *([\"']?){$linked->URLSegment}\/?/i",
+ $page->Content = preg_replace(
+ "/(*ANYCRLF)href *= *([\"']?){$linked->URLSegment}\/?/i",
"href=$1[sitetree_link id={$linked->ID}]",
$page->Content,
-1,

0 comments on commit 01f5b3d

Please sign in to comment.