forked from GNUsocial/gnu-social
less tricky with recoverpassword
darcs-hash:20080624220626-34904-94cb8a4cd1f1a7a96e78ab57e760f8de42f4eaca.gz
This commit is contained in:
parent
bb3c796c25
commit
ae18afc070
@ -685,9 +685,11 @@ function common_fancy_url($action, $args=NULL) {
|
||||
case 'userbyid':
|
||||
return common_path('user/'.$args['id']);
|
||||
case 'recoverpassword':
|
||||
return common_path('main/recoverpassword' .
|
||||
($args['code']) ? ('/' . $args['code']) :
|
||||
'');
|
||||
$path = 'main/recoverpassword';
|
||||
if ($args['code']) {
|
||||
$path .= '/' . $args['code'];
|
||||
}
|
||||
return common_path($path);
|
||||
default:
|
||||
return common_simple_url($action, $args);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user