]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/scripts/update-profile.php
Merge branch 'cas-user-whitelist' into 'nightly'
[quix0rs-gnu-social.git] / plugins / OStatus / scripts / update-profile.php
index f20429cd8340327be686e41aad98879c383984d3..758c5e6e121a5dcb1e5a823234ba9831fe8667e5 100755 (executable)
@@ -24,7 +24,7 @@ $helptext = <<<END_OF_HELP
 update-profile.php [options] http://example.com/profile/url
 
 Rerun profile and feed info discovery for the given OStatus remote profile,
-and reinitialize its PuSH subscription for the given feed. This may help get
+and reinitialize its WebSub subscription for the given feed. This may help get
 things restarted if the hub or feed URLs have changed for the profile.
 
 
@@ -32,7 +32,9 @@ END_OF_HELP;
 
 require_once INSTALLDIR.'/scripts/commandline.inc';
 
-if (empty($args[0]) || !Validate::uri($args[0])) {
+$validate = new Validate();
+
+if (empty($args[0]) || !$validate->uri($args[0])) {
     print "$helptext";
     exit(1);
 }