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

This commit is contained in:
redmatrix
2016-04-06 19:56:38 -07:00
parent 9831ad515d
commit 861f5232d3
4 changed files with 63 additions and 13 deletions

View File

@@ -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']);
}