contact search oddities

This commit is contained in:
friendica 2012-06-20 16:05:46 -07:00
parent 0d0f129d04
commit 0f0e5be549
3 changed files with 64 additions and 63 deletions

View File

@ -10,7 +10,7 @@ require_once('include/nav.php');
require_once('include/cache.php'); require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '3.0.1379' ); define ( 'FRIENDICA_VERSION', '3.0.1380' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1149 ); define ( 'DB_UPDATE_VERSION', 1149 );

View File

@ -479,12 +479,13 @@ function contacts_content(&$a) {
$searching = false;
if($search) { if($search) {
$search_hdr = $search; $search_hdr = $search;
$search = dbesc($search.'*'); $search = dbesc(protect_sprintf('%' . $search . '%');
$searching = true;
} }
$sql_extra .= ((strlen($search)) ? " AND MATCH `name` AGAINST ('$search' IN BOOLEAN MODE) " : ""); $sql_extra .= (($searching) ? " AND `name` REGEXP '$search' " : "");
if($nets) if($nets)
$sql_extra .= sprintf(" AND network = '%s' ", dbesc($nets)); $sql_extra .= sprintf(" AND network = '%s' ", dbesc($nets));

View File

@ -6,9 +6,9 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 3.0.1379\n" "Project-Id-Version: 3.0.1380\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-06-19 10:00-0700\n" "POT-Creation-Date: 2012-06-20 10:00-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -55,7 +55,7 @@ msgstr ""
#: ../../mod/profiles.php:385 ../../mod/delegate.php:6 #: ../../mod/profiles.php:385 ../../mod/delegate.php:6
#: ../../mod/suggest.php:28 ../../mod/invite.php:13 ../../mod/invite.php:81 #: ../../mod/suggest.php:28 ../../mod/invite.php:13 ../../mod/invite.php:81
#: ../../mod/dfrn_confirm.php:53 ../../addon/facebook/facebook.php:507 #: ../../mod/dfrn_confirm.php:53 ../../addon/facebook/facebook.php:507
#: ../../addon/dav/layout.fnk.php:353 ../../include/items.php:3393 #: ../../addon/dav/layout.fnk.php:353 ../../include/items.php:3400
#: ../../index.php:309 #: ../../index.php:309
msgid "Permission denied." msgid "Permission denied."
msgstr "" msgstr ""
@ -227,7 +227,7 @@ msgid "link to source"
msgstr "" msgstr ""
#: ../../mod/events.php:324 ../../view/theme/diabook/theme.php:131 #: ../../mod/events.php:324 ../../view/theme/diabook/theme.php:131
#: ../../include/nav.php:52 ../../boot.php:1529 #: ../../include/nav.php:52 ../../boot.php:1546
msgid "Events" msgid "Events"
msgstr "" msgstr ""
@ -278,7 +278,7 @@ msgid "Description:"
msgstr "" msgstr ""
#: ../../mod/events.php:423 ../../include/event.php:37 #: ../../mod/events.php:423 ../../include/event.php:37
#: ../../include/bb2diaspora.php:265 ../../boot.php:1109 #: ../../include/bb2diaspora.php:265 ../../boot.php:1126
msgid "Location:" msgid "Location:"
msgstr "" msgstr ""
@ -355,7 +355,7 @@ msgstr ""
msgid "No" msgid "No"
msgstr "" msgstr ""
#: ../../mod/photos.php:44 ../../boot.php:1523 #: ../../mod/photos.php:44 ../../boot.php:1540
msgid "Photo Albums" msgid "Photo Albums"
msgstr "" msgstr ""
@ -560,7 +560,7 @@ msgstr ""
#: ../../mod/photos.php:1306 ../../mod/photos.php:1346 #: ../../mod/photos.php:1306 ../../mod/photos.php:1346
#: ../../mod/photos.php:1377 ../../include/conversation.php:579 #: ../../mod/photos.php:1377 ../../include/conversation.php:579
#: ../../boot.php:523 #: ../../boot.php:518
msgid "Comment" msgid "Comment"
msgstr "" msgstr ""
@ -822,7 +822,7 @@ msgstr ""
msgid "Confirm" msgid "Confirm"
msgstr "" msgstr ""
#: ../../mod/dfrn_request.php:715 ../../include/items.php:2789 #: ../../mod/dfrn_request.php:715 ../../include/items.php:2796
msgid "[Name Withheld]" msgid "[Name Withheld]"
msgstr "" msgstr ""
@ -1194,7 +1194,7 @@ msgid "is interested in:"
msgstr "" msgstr ""
#: ../../mod/match.php:58 ../../mod/suggest.php:59 #: ../../mod/match.php:58 ../../mod/suggest.php:59
#: ../../include/contact_widgets.php:9 ../../boot.php:1053 #: ../../include/contact_widgets.php:9 ../../boot.php:1070
msgid "Connect" msgid "Connect"
msgstr "" msgstr ""
@ -1724,8 +1724,8 @@ msgstr ""
#: ../../addon/facebook/facebook.php:692 #: ../../addon/facebook/facebook.php:692
#: ../../addon/facebook/facebook.php:1182 #: ../../addon/facebook/facebook.php:1182
#: ../../addon/public_server/public_server.php:62 #: ../../addon/public_server/public_server.php:62
#: ../../addon/testdrive/testdrive.php:67 ../../include/items.php:2798 #: ../../addon/testdrive/testdrive.php:67 ../../include/items.php:2805
#: ../../boot.php:703 #: ../../boot.php:720
msgid "Administrator" msgid "Administrator"
msgstr "" msgstr ""
@ -1735,7 +1735,7 @@ msgid ""
"Password reset failed." "Password reset failed."
msgstr "" msgstr ""
#: ../../mod/lostpass.php:83 ../../boot.php:835 #: ../../mod/lostpass.php:83 ../../boot.php:852
msgid "Password Reset" msgid "Password Reset"
msgstr "" msgstr ""
@ -2410,7 +2410,7 @@ msgstr ""
msgid "Invalid contact." msgid "Invalid contact."
msgstr "" msgstr ""
#: ../../mod/notes.php:44 ../../boot.php:1535 #: ../../mod/notes.php:44 ../../boot.php:1552
msgid "Personal Notes" msgid "Personal Notes"
msgstr "" msgstr ""
@ -2661,7 +2661,7 @@ msgstr ""
#: ../../mod/profperm.php:103 ../../view/theme/diabook/theme.php:128 #: ../../mod/profperm.php:103 ../../view/theme/diabook/theme.php:128
#: ../../include/profile_advanced.php:7 ../../include/profile_advanced.php:79 #: ../../include/profile_advanced.php:7 ../../include/profile_advanced.php:79
#: ../../include/nav.php:50 ../../boot.php:1514 #: ../../include/nav.php:50 ../../boot.php:1531
msgid "Profile" msgid "Profile"
msgstr "" msgstr ""
@ -2765,7 +2765,7 @@ msgstr ""
msgid "Choose a nickname: " msgid "Choose a nickname: "
msgstr "" msgstr ""
#: ../../mod/register.php:269 ../../include/nav.php:81 ../../boot.php:801 #: ../../mod/register.php:269 ../../include/nav.php:81 ../../boot.php:818
msgid "Register" msgid "Register"
msgstr "" msgstr ""
@ -2799,7 +2799,7 @@ msgstr ""
#: ../../mod/notice.php:15 ../../mod/viewsrc.php:15 ../../mod/admin.php:159 #: ../../mod/notice.php:15 ../../mod/viewsrc.php:15 ../../mod/admin.php:159
#: ../../mod/admin.php:700 ../../mod/admin.php:899 ../../mod/display.php:37 #: ../../mod/admin.php:700 ../../mod/admin.php:899 ../../mod/display.php:37
#: ../../mod/display.php:142 ../../include/items.php:3240 #: ../../mod/display.php:142 ../../include/items.php:3247
msgid "Item not found." msgid "Item not found."
msgstr "" msgstr ""
@ -2808,7 +2808,7 @@ msgid "Access denied."
msgstr "" msgstr ""
#: ../../mod/fbrowser.php:25 ../../view/theme/diabook/theme.php:130 #: ../../mod/fbrowser.php:25 ../../view/theme/diabook/theme.php:130
#: ../../include/nav.php:51 ../../boot.php:1520 #: ../../include/nav.php:51 ../../boot.php:1537
msgid "Photos" msgid "Photos"
msgstr "" msgstr ""
@ -3611,7 +3611,7 @@ msgstr ""
msgid "FTP Password" msgid "FTP Password"
msgstr "" msgstr ""
#: ../../mod/profile.php:21 ../../boot.php:966 #: ../../mod/profile.php:21 ../../boot.php:983
msgid "Requested profile is not available." msgid "Requested profile is not available."
msgstr "" msgstr ""
@ -3986,23 +3986,23 @@ msgstr ""
msgid "Edit/Manage Profiles" msgid "Edit/Manage Profiles"
msgstr "" msgstr ""
#: ../../mod/profiles.php:645 ../../boot.php:1075 #: ../../mod/profiles.php:645 ../../boot.php:1092
msgid "Change profile photo" msgid "Change profile photo"
msgstr "" msgstr ""
#: ../../mod/profiles.php:646 ../../boot.php:1076 #: ../../mod/profiles.php:646 ../../boot.php:1093
msgid "Create New Profile" msgid "Create New Profile"
msgstr "" msgstr ""
#: ../../mod/profiles.php:657 ../../boot.php:1086 #: ../../mod/profiles.php:657 ../../boot.php:1103
msgid "Profile Image" msgid "Profile Image"
msgstr "" msgstr ""
#: ../../mod/profiles.php:659 ../../boot.php:1089 #: ../../mod/profiles.php:659 ../../boot.php:1106
msgid "visible to everybody" msgid "visible to everybody"
msgstr "" msgstr ""
#: ../../mod/profiles.php:660 ../../boot.php:1090 #: ../../mod/profiles.php:660 ../../boot.php:1107
msgid "Edit visibility" msgid "Edit visibility"
msgstr "" msgstr ""
@ -4622,7 +4622,7 @@ msgstr ""
#: ../../addon/page/page.php:73 ../../addon/page/page.php:107 #: ../../addon/page/page.php:73 ../../addon/page/page.php:107
#: ../../addon/showmore/showmore.php:87 ../../include/contact_widgets.php:188 #: ../../addon/showmore/showmore.php:87 ../../include/contact_widgets.php:188
#: ../../include/conversation.php:476 ../../boot.php:524 #: ../../include/conversation.php:476 ../../boot.php:519
msgid "show more" msgid "show more"
msgstr "" msgstr ""
@ -4654,7 +4654,7 @@ msgstr ""
#: ../../addon/communityhome/communityhome.php:34 #: ../../addon/communityhome/communityhome.php:34
#: ../../addon/communityhome/twillingham/communityhome.php:28 #: ../../addon/communityhome/twillingham/communityhome.php:28
#: ../../addon/communityhome/twillingham/communityhome.php:34 #: ../../addon/communityhome/twillingham/communityhome.php:34
#: ../../include/nav.php:64 ../../boot.php:822 #: ../../include/nav.php:64 ../../boot.php:839
msgid "Login" msgid "Login"
msgstr "" msgstr ""
@ -6068,7 +6068,7 @@ msgstr ""
msgid "Set colour scheme" msgid "Set colour scheme"
msgstr "" msgstr ""
#: ../../include/profile_advanced.php:17 ../../boot.php:1111 #: ../../include/profile_advanced.php:17 ../../boot.php:1128
msgid "Gender:" msgid "Gender:"
msgstr "" msgstr ""
@ -6081,7 +6081,7 @@ msgid "j F"
msgstr "" msgstr ""
#: ../../include/profile_advanced.php:30 ../../include/datetime.php:450 #: ../../include/profile_advanced.php:30 ../../include/datetime.php:450
#: ../../include/items.php:1452 #: ../../include/items.php:1459
msgid "Birthday:" msgid "Birthday:"
msgstr "" msgstr ""
@ -6089,7 +6089,7 @@ msgstr ""
msgid "Age:" msgid "Age:"
msgstr "" msgstr ""
#: ../../include/profile_advanced.php:37 ../../boot.php:1114 #: ../../include/profile_advanced.php:37 ../../boot.php:1131
msgid "Status:" msgid "Status:"
msgstr "" msgstr ""
@ -6098,7 +6098,7 @@ msgstr ""
msgid "for %1$d %2$s" msgid "for %1$d %2$s"
msgstr "" msgstr ""
#: ../../include/profile_advanced.php:48 ../../boot.php:1116 #: ../../include/profile_advanced.php:48 ../../boot.php:1133
msgid "Homepage:" msgid "Homepage:"
msgstr "" msgstr ""
@ -6677,7 +6677,7 @@ msgstr ""
msgid "Contacts not in any group" msgid "Contacts not in any group"
msgstr "" msgstr ""
#: ../../include/nav.php:46 ../../boot.php:821 #: ../../include/nav.php:46 ../../boot.php:838
msgid "Logout" msgid "Logout"
msgstr "" msgstr ""
@ -6685,7 +6685,7 @@ msgstr ""
msgid "End this session" msgid "End this session"
msgstr "" msgstr ""
#: ../../include/nav.php:49 ../../boot.php:1508 #: ../../include/nav.php:49 ../../boot.php:1525
msgid "Status" msgid "Status"
msgstr "" msgstr ""
@ -6765,11 +6765,11 @@ msgstr ""
msgid "Manage other pages" msgid "Manage other pages"
msgstr "" msgstr ""
#: ../../include/nav.php:138 ../../boot.php:1069 #: ../../include/nav.php:138 ../../boot.php:1086
msgid "Profiles" msgid "Profiles"
msgstr "" msgstr ""
#: ../../include/nav.php:138 ../../boot.php:1069 #: ../../include/nav.php:138 ../../boot.php:1086
msgid "Manage/edit profiles" msgid "Manage/edit profiles"
msgstr "" msgstr ""
@ -7180,15 +7180,15 @@ msgstr ""
msgid "following" msgid "following"
msgstr "" msgstr ""
#: ../../include/items.php:2796 #: ../../include/items.php:2803
msgid "A new person is sharing with you at " msgid "A new person is sharing with you at "
msgstr "" msgstr ""
#: ../../include/items.php:2796 #: ../../include/items.php:2803
msgid "You have a new follower at " msgid "You have a new follower at "
msgstr "" msgstr ""
#: ../../include/items.php:3458 #: ../../include/items.php:3465
msgid "Archives" msgid "Archives"
msgstr "" msgstr ""
@ -7540,96 +7540,96 @@ msgstr ""
msgid "permissions" msgid "permissions"
msgstr "" msgstr ""
#: ../../boot.php:522 #: ../../boot.php:517
msgid "Delete this item?" msgid "Delete this item?"
msgstr "" msgstr ""
#: ../../boot.php:525 #: ../../boot.php:520
msgid "show fewer" msgid "show fewer"
msgstr "" msgstr ""
#: ../../boot.php:698 #: ../../boot.php:715
#, php-format #, php-format
msgid "Update %s failed. See error logs." msgid "Update %s failed. See error logs."
msgstr "" msgstr ""
#: ../../boot.php:700 #: ../../boot.php:717
#, php-format #, php-format
msgid "Update Error at %s" msgid "Update Error at %s"
msgstr "" msgstr ""
#: ../../boot.php:800 #: ../../boot.php:817
msgid "Create a New Account" msgid "Create a New Account"
msgstr "" msgstr ""
#: ../../boot.php:824 #: ../../boot.php:841
msgid "Nickname or Email address: " msgid "Nickname or Email address: "
msgstr "" msgstr ""
#: ../../boot.php:825 #: ../../boot.php:842
msgid "Password: " msgid "Password: "
msgstr "" msgstr ""
#: ../../boot.php:828 #: ../../boot.php:845
msgid "Or login using OpenID: " msgid "Or login using OpenID: "
msgstr "" msgstr ""
#: ../../boot.php:834 #: ../../boot.php:851
msgid "Forgot your password?" msgid "Forgot your password?"
msgstr "" msgstr ""
#: ../../boot.php:1001 #: ../../boot.php:1018
msgid "Edit profile" msgid "Edit profile"
msgstr "" msgstr ""
#: ../../boot.php:1061 #: ../../boot.php:1078
msgid "Message" msgid "Message"
msgstr "" msgstr ""
#: ../../boot.php:1177 ../../boot.php:1253 #: ../../boot.php:1194 ../../boot.php:1270
msgid "g A l F d" msgid "g A l F d"
msgstr "" msgstr ""
#: ../../boot.php:1178 ../../boot.php:1254 #: ../../boot.php:1195 ../../boot.php:1271
msgid "F d" msgid "F d"
msgstr "" msgstr ""
#: ../../boot.php:1223 ../../boot.php:1294 #: ../../boot.php:1240 ../../boot.php:1311
msgid "[today]" msgid "[today]"
msgstr "" msgstr ""
#: ../../boot.php:1235 #: ../../boot.php:1252
msgid "Birthday Reminders" msgid "Birthday Reminders"
msgstr "" msgstr ""
#: ../../boot.php:1236 #: ../../boot.php:1253
msgid "Birthdays this week:" msgid "Birthdays this week:"
msgstr "" msgstr ""
#: ../../boot.php:1287 #: ../../boot.php:1304
msgid "[No description]" msgid "[No description]"
msgstr "" msgstr ""
#: ../../boot.php:1305 #: ../../boot.php:1322
msgid "Event Reminders" msgid "Event Reminders"
msgstr "" msgstr ""
#: ../../boot.php:1306 #: ../../boot.php:1323
msgid "Events this week:" msgid "Events this week:"
msgstr "" msgstr ""
#: ../../boot.php:1511 #: ../../boot.php:1528
msgid "Status Messages and Posts" msgid "Status Messages and Posts"
msgstr "" msgstr ""
#: ../../boot.php:1517 #: ../../boot.php:1534
msgid "Profile Details" msgid "Profile Details"
msgstr "" msgstr ""
#: ../../boot.php:1532 #: ../../boot.php:1549
msgid "Events and Calendar" msgid "Events and Calendar"
msgstr "" msgstr ""
#: ../../boot.php:1538 #: ../../boot.php:1555
msgid "Only You Can See This" msgid "Only You Can See This"
msgstr "" msgstr ""