fix the invite url

darcs-hash:20080825193450-84dde-a9a2e16b65c21a22adcb5574c4040d401513e961.gz
This commit is contained in:
Evan Prodromou 2008-08-25 15:34:50 -04:00
parent 245b9584bf
commit a442d4d04a

View File

@ -819,6 +819,7 @@ function common_fancy_url($action, $args=NULL) {
case 'register': case 'register':
case 'subscribe': case 'subscribe':
case 'unsubscribe': case 'unsubscribe':
case 'invite':
return common_path('main/'.$action); return common_path('main/'.$action);
case 'remotesubscribe': case 'remotesubscribe':
if ($args && $args['nickname']) { if ($args && $args['nickname']) {
@ -907,8 +908,6 @@ function common_fancy_url($action, $args=NULL) {
return common_path($path . (($args) ? ('?' . http_build_query($args)) : '')); return common_path($path . (($args) ? ('?' . http_build_query($args)) : ''));
case 'tags': case 'tags':
return common_path('tags' . (($args) ? ('?' . http_build_query($args)) : '')); return common_path('tags' . (($args) ? ('?' . http_build_query($args)) : ''));
case 'invite':
return common_path('invite');
default: default:
return common_simple_url($action, $args); return common_simple_url($action, $args);
} }