use smarter query builder

darcs-hash:20080709223701-84dde-a2bc25d65eeb70d24d4c598ef962e17062390fc4.gz
This commit is contained in:
Evan Prodromou 2008-07-09 18:37:01 -04:00
parent f20eca5187
commit 5d525893c3
1 changed files with 2 additions and 2 deletions

View File

@ -775,9 +775,9 @@ function common_fancy_url($action, $args=NULL) {
case 'imsettings':
return common_path('settings/im');
case 'peoplesearch':
return common_path('search/people' . ($args) ? ('?' . implode('&', $args)) : '');
return common_path('search/people' . ($args) ? ('?' . http_build_query($args)) : '');
case 'noticesearch':
return common_path('search/notice' . ($args) ? ('?' . implode('&', $args)) : '');
return common_path('search/notice' . ($args) ? ('?' . http_build_query($args)) : '');
default:
return common_simple_url($action, $args);
}