From 861f5232d3b6c5bd2cf8bd895f57424b730ce270 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 6 Apr 2016 19:56:38 -0700 Subject: more work on file sync to clones, 60-70% test coverage, mostly working but many changes made during testing which themselves have not yet been tested --- include/text.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index d38f4f7c4..0a7f84b01 100644 --- a/include/text.php +++ b/include/text.php @@ -2753,15 +2753,13 @@ function item_url_replace($channel,&$item,$old,$new,$oldnick = '') { $item['item_verified'] = 1; } - // @fixme item['plink'] and item['llink'] - - str_replace($old,$new,$item['plink']); + $item['plink'] = str_replace($old,$new,$item['plink']); if($oldnick) - str_replace('/' . $oldnick . '/' ,'/' . $channel['channel_address'] . '/' ,$item['plink']); + $item['plink'] = str_replace('/' . $oldnick . '/' ,'/' . $channel['channel_address'] . '/' ,$item['plink']); - str_replace($old,$new,$item['llink']); + $item['llink'] = str_replace($old,$new,$item['llink']); if($oldnick) - str_replace('/' . $oldnick . '/' ,'/' . $channel['channel_address'] . '/' ,$item['llink']); + $item['llink'] = str_replace('/' . $oldnick . '/' ,'/' . $channel['channel_address'] . '/' ,$item['llink']); } -- cgit v1.2.3