<?php
+use Friendica\App;
+use Friendica\Core\System;
+use Friendica\Database\DBM;
function ignored_init(App $a) {
intval(local_user()),
intval($message_id)
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
killme();
}
$return_path = ((x($_REQUEST,'return')) ? $_REQUEST['return'] : '');
if ($return_path) {
$rand = '_=' . time();
- if (strpos($return_path, '?')) {
- $rand = "&$rand";
- } else {
- $rand = "?$rand";
- }
+ if(strpos($return_path, '?')) $rand = "&$rand";
+ else $rand = "?$rand";
- goaway(App::get_baseurl() . "/" . $return_path . $rand);
+ goaway(System::baseUrl() . "/" . $return_path . $rand);
}
// the json doesn't really matter, it will either be 0 or 1