forked from GNUsocial/gnu-social
fix the invite url
darcs-hash:20080825193450-84dde-a9a2e16b65c21a22adcb5574c4040d401513e961.gz
This commit is contained in:
parent
245b9584bf
commit
a442d4d04a
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user