]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/setpassword.php
Merge branch 'master' into social-master
[quix0rs-gnu-social.git] / scripts / setpassword.php
index 50d49d7dbfdae24177b478effe781caeed0907b8..ef439488b273975f5474df15bf7744780af45ff0 100755 (executable)
@@ -27,7 +27,7 @@ Sets the password of user with name <username> to <password>
 
 END_OF_PASSWORD_HELP;
 
-require_once INSTALLDIR.'/scripts/commandline.inc';
+require_once INSTALLDIR.'/scripts/commandline.inc.php';
 
 if (count($args) < 2) {
     show_help();
@@ -41,7 +41,7 @@ if (mb_strlen($password) < 6) {
     exit(1);
 }
 
-$user = User::staticGet('nickname', $nickname);
+$user = User::getKV('nickname', $nickname);
 
 if (!$user) {
     print "No such user '$nickname'.\n";