From ae18afc070df751d948ef553ced1dc5da90440b7 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 24 Jun 2008 18:06:26 -0400 Subject: less tricky with recoverpassword darcs-hash:20080624220626-34904-94cb8a4cd1f1a7a96e78ab57e760f8de42f4eaca.gz --- lib/util.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/util.php') diff --git a/lib/util.php b/lib/util.php index e2c9c67a1..4e318a770 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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); } -- cgit v1.2.3-54-g00ecf