]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/deleteuser.php
Misses this file to merge. I like the comments.
[quix0rs-gnu-social.git] / scripts / deleteuser.php
index 5373c73cea59fbad5dde4283c0b600de15792816..e815ea208d7bc429e52a65e98028f7ea14291ff2 100755 (executable)
@@ -33,18 +33,18 @@ deletes a user from the database
 
 END_OF_DELETEUSER_HELP;
 
-require_once INSTALLDIR.'/scripts/commandline.inc';
+require_once INSTALLDIR.'/scripts/commandline.inc.php';
 
 if (have_option('i', 'id')) {
     $id = get_option_value('i', 'id');
-    $user = User::staticGet('id', $id);
+    $user = User::getKV('id', $id);
     if (empty($user)) {
         print "Can't find user with ID $id\n";
         exit(1);
     }
 } else if (have_option('n', 'nickname')) {
     $nickname = get_option_value('n', 'nickname');
-    $user = User::staticGet('nickname', $nickname);
+    $user = User::getKV('nickname', $nickname);
     if (empty($user)) {
         print "Can't find user with nickname '$nickname'\n";
         exit(1);