]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/sendemail.php
Misses this file to merge. I like the comments.
[quix0rs-gnu-social.git] / scripts / sendemail.php
index 436e085bed83e1386a756fc52d865d2246472618..9b89cbce7eccedaef96937a6536f4d29a2c852f9 100755 (executable)
@@ -33,18 +33,18 @@ Sends given email text to user.
 
 END_OF_USEREMAIL_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);