Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
BUGFIX Fixed MigrateSiteTreeLinkingTask not working correctly when CL…
…RF newlines being used
  • Loading branch information
Sean Harvey committed Mar 22, 2011
1 parent fef7c32 commit 01f5b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/MigrateSiteTreeLinkingTask.php
Expand Up @@ -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,
Expand Down

0 comments on commit 01f5b3d

Please sign in to comment.