require_once('include/Scrape.php');
require_once('include/follow.php');
-function repair_ostatus_content(&$a) {
+function repair_ostatus_content(App &$a) {
- if(! local_user()) {
+ if (! local_user()) {
notice( t('Permission denied.') . EOL);
goaway($_SESSION['return_url']);
// NOTREACHED
}
- $o = "<h2>".t("Resubsribing to OStatus contacts")."</h2>";
+ $o = "<h2>".t("Resubscribing to OStatus contacts")."</h2>";
$uid = local_user();
$result = new_contact($uid,$r[0]["url"],true);
- $a->page['htmlhead'] = '<meta http-equiv="refresh" content="1; URL='.$a->get_baseurl().'/repair_ostatus?counter='.$counter.'">';
+ $a->page['htmlhead'] = '<meta http-equiv="refresh" content="1; URL='.App::get_baseurl().'/repair_ostatus?counter='.$counter.'">';
return $o;
}