]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/strip_geo.php
Merged
[quix0rs-gnu-social.git] / scripts / strip_geo.php
index b3f27be616a7b4b620d143c17784ace8cfc962e4..165736816d8396c8d4d96bfb6cad1709d6a0cc63 100755 (executable)
@@ -36,18 +36,18 @@ Removes geolocation info from the given user's notices.
 
 END_OF_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 local or remote profile 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 local user with nickname '$nickname'\n";
         exit(1);