]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/util.php
move update_user function to openid.php
[quix0rs-gnu-social.git] / lib / util.php
index a0c1b5fcb0cd85f9543e29bbec5d27c1638a31d9..eb019ac7ee849f97d243295c0ce164f7da293773 100644 (file)
@@ -366,8 +366,8 @@ function common_textarea($id, $label, $content=NULL, $instructions=NULL) {
 
 # salted, hashed passwords are stored in the DB
 
-function common_munge_password($id, $password) {
-       return md5($id . $password);
+function common_munge_password($password, $id) {
+       return md5($password . $id);
 }
 
 # check if a username exists and has matching password
@@ -557,7 +557,7 @@ function common_fancy_url($action, $args=NULL) {
         case 'foaf':
                return common_path($args['nickname'].'/'.$action);
         case 'subscriptions':
-        case 'subscribed':
+        case 'subscribers':
         case 'all':
                if ($args && $args['page']) {
                        return common_path($args['nickname'].'/'.$action.'?page=' . $args['page']);