issue with cyrillic nickname case conversion
authorfriendica <info@friendica.com>
Wed, 27 Jun 2012 06:38:34 +0000 (23:38 -0700)
committerfriendica <info@friendica.com>
Wed, 27 Jun 2012 06:38:34 +0000 (23:38 -0700)
facebook.tgz
facebook/facebook.php

index 233e4ea..1fde92b 100644 (file)
Binary files a/facebook.tgz and b/facebook.tgz differ
index 11c87a3..5b1badf 100644 (file)
@@ -316,7 +316,7 @@ function fb_get_friends_sync_parsecontact($uid, $contact) {
             dbesc($contact->id),
             dbesc('facebook ' . $contact->id),
             dbesc($contact->name),
-            dbesc(($contact->nickname) ? $contact->nickname : strtolower($contact->first_name)),
+            dbesc(($contact->nickname) ? $contact->nickname : mb_convert_case($contact->first_name, MB_CASE_LOWER, "UTF-8"),
             dbesc('https://graph.facebook.com/' . $contact->id . '/picture'),
             dbesc(NETWORK_FACEBOOK),
             intval(CONTACT_IS_FRIEND),