language detection and sparkle links added to plinks where appropriate

This commit is contained in:
friendica
2012-07-12 03:50:05 -07:00
parent bb6d8e9597
commit 3f7b93ce65
12 changed files with 45 additions and 15 deletions

View File

@@ -242,6 +242,16 @@ function localize_item(&$item){
}
}
// add sparkle links to appropriate permalinks
$x = stristr($item['plink'],'/display/');
if($x) {
$sparkle = false;
$y = best_link_url($item,$sparkle,true);
if(strstr($y,'/redir/'))
$item['plink'] = $y . '?f=&url=' . $item['plink'];
}
}