X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fuserrole.php;h=a5eddeae5fc3dd5a1525ff6d12bdd2d1b4863b6e;hb=a0adcfa6125752380e29f3e22fed592d5a36605b;hp=a2cc7def888e2cec29fcb98d2052bb242bb98d15;hpb=8884a5255fb90fda67b63fa0d4252d77176337e5;p=quix0rs-gnu-social.git diff --git a/scripts/userrole.php b/scripts/userrole.php index a2cc7def88..a5eddeae5f 100644 --- a/scripts/userrole.php +++ b/scripts/userrole.php @@ -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);