]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
less tricky with recoverpassword
authorEvan Prodromou <evan@controlezvous.ca>
Tue, 24 Jun 2008 22:06:26 +0000 (18:06 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Tue, 24 Jun 2008 22:06:26 +0000 (18:06 -0400)
darcs-hash:20080624220626-34904-94cb8a4cd1f1a7a96e78ab57e760f8de42f4eaca.gz

lib/util.php

index e2c9c67a1ef73f91ae5158c49420d47ad17944a9..4e318a7702eed4c48e42f56c430d291279c2a4b5 100644 (file)
@@ -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);
        }