]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/registeruser.php
plugins/Xmpp/README fixed typos
[quix0rs-gnu-social.git] / scripts / registeruser.php
index 9857f5aeeae462dab3e59cf5cc738935c010496c..d2a47b6be9737b27f3cc30603aefd496cdbb9344 100644 (file)
@@ -24,8 +24,8 @@ $shortoptions = 'n:w:f:e:';
 $longoptions = array('nickname=', 'password=', 'fullname=', 'email=');
 
 $helptext = <<<END_OF_REGISTERUSER_HELP
-deleteuser.php [options]
-deletes a user from the database
+registeruser.php [options]
+registers a user in the database
 
   -n --nickname nickname of the new user
   -w --password password of the new user
@@ -49,7 +49,7 @@ if (empty($nickname) || empty($password)) {
 
 try {
 
-    $user = User::staticGet('nickname', $nickname);
+    $user = User::getKV('nickname', $nickname);
 
     if (!empty($user)) {
         throw new Exception("A user named '$nickname' already exists.");