summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-06-24 18:06:26 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-06-24 18:06:26 -0400
commitae18afc070df751d948ef553ced1dc5da90440b7 (patch)
tree63c5765c6ff618d6ccc3d5cdeabcc635aca58827 /lib/util.php
parentbb3c796c25f989b529af0e985faa857689e0b25f (diff)
less tricky with recoverpassword
darcs-hash:20080624220626-34904-94cb8a4cd1f1a7a96e78ab57e760f8de42f4eaca.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php8
1 files changed, 5 insertions, 3 deletions
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);
}