From 3f7b93ce6542219858014c4d6f075fe9b46a18e2 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 12 Jul 2012 03:50:05 -0700 Subject: language detection and sparkle links added to plinks where appropriate --- include/items.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index 5094c60c2..bc1346e92 100755 --- a/include/items.php +++ b/include/items.php @@ -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()); -- cgit v1.2.3