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

@@ -826,6 +826,9 @@ function item_store($arr,$force_parent = false) {
if((strpos($arr['body'],'<') !== false) || (strpos($arr['body'],'>') !== false))
$arr['body'] = strip_tags($arr['body']);
require_once('include/language.php');
$arr['lang'] = detect_language($arr['body']);
$arr['wall'] = ((x($arr,'wall')) ? intval($arr['wall']) : 0);
$arr['uri'] = ((x($arr,'uri')) ? notags(trim($arr['uri'])) : random_string());