X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fupdatelocation.php;h=c8024cb769a86fb6d868e52c483b6ef9b9084063;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=4110660ab0139601d3b53912c109208e308665f8;hpb=91760ae2ae677c68fa818e98e35525f07ded3fd8;p=quix0rs-gnu-social.git diff --git a/scripts/updatelocation.php b/scripts/updatelocation.php old mode 100644 new mode 100755 index 4110660ab0..c8024cb769 --- a/scripts/updatelocation.php +++ b/scripts/updatelocation.php @@ -34,21 +34,21 @@ set the location for a profile END_OF_UPDATELOCATION_HELP; -require_once INSTALLDIR.'/scripts/commandline.inc'; +require_once INSTALLDIR.'/scripts/commandline.inc.php'; try { $user = null; if (have_option('i', 'id')) { $id = get_option_value('i', 'id'); - $user = User::staticGet('id', $id); + $user = User::getKV('id', $id); if (empty($user)) { throw new Exception("Can't find user with id '$id'."); } updateLocation($user); } 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)) { throw new Exception("Can't find user with nickname '$nickname'"); }