]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/userrole.php
Merge branch 'master' into social-master
[quix0rs-gnu-social.git] / scripts / userrole.php
index a2cc7def888e2cec29fcb98d2052bb242bb98d15..a5eddeae5fc3dd5a1525ff6d12bdd2d1b4863b6e 100644 (file)
@@ -34,18 +34,18 @@ modifies a role for the given user
 
 END_OF_USERROLE_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');
-    $profile = Profile::staticGet('id', $id);
+    $profile = Profile::getKV('id', $id);
     if (empty($profile)) {
         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);