diff options
author | redmatrix <git@macgirvin.com> | 2016-04-06 19:56:38 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-06 19:56:38 -0700 |
commit | 861f5232d3b6c5bd2cf8bd895f57424b730ce270 (patch) | |
tree | 8094192667b1863f78d2baf15e57a209cee4996b /include/text.php | |
parent | 9831ad515d7963bcfe1f6298a5176fa29bc28f14 (diff) | |
download | volse-hubzilla-861f5232d3b6c5bd2cf8bd895f57424b730ce270.tar.gz volse-hubzilla-861f5232d3b6c5bd2cf8bd895f57424b730ce270.tar.bz2 volse-hubzilla-861f5232d3b6c5bd2cf8bd895f57424b730ce270.zip |
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
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 10 |
1 files changed, 4 insertions, 6 deletions
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']); } |