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':
|
case 'userbyid':
|
||||||
return common_path('user/'.$args['id']);
|
return common_path('user/'.$args['id']);
|
||||||
case 'recoverpassword':
|
case 'recoverpassword':
|
||||||
return common_path('main/recoverpassword' .
|
$path = 'main/recoverpassword';
|
||||||
($args['code']) ? ('/' . $args['code']) :
|
if ($args['code']) {
|
||||||
'');
|
$path .= '/' . $args['code'];
|
||||||
|
}
|
||||||
|
return common_path($path);
|
||||||
default:
|
default:
|
||||||
return common_simple_url($action, $args);
|
return common_simple_url($action, $args);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user