From: Evan Prodromou Date: Tue, 24 Jun 2008 22:06:26 +0000 (-0400) Subject: less tricky with recoverpassword X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae18afc070df751d948ef553ced1dc5da90440b7;p=quix0rs-gnu-social.git less tricky with recoverpassword darcs-hash:20080624220626-34904-94cb8a4cd1f1a7a96e78ab57e760f8de42f4eaca.gz --- diff --git a/lib/util.php b/lib/util.php index e2c9c67a1e..4e318a7702 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); }