<?php
use Friendica\App;
+use Friendica\Core\System;
require_once("include/Photo.php");
define("IMPORT_DEBUG", False);
function last_insert_id() {
- global $db;
-
if (IMPORT_DEBUG) {
return 1;
}
- return $db->insert_id();
+ return dba::lastInsertId();
}
function last_error() {
}
$oldbaseurl = $account['baseurl'];
- $newbaseurl = App::get_baseurl();
+ $newbaseurl = System::baseUrl();
$olduid = $account['user']['uid'];
unset($account['user']['uid']);
proc_run(PRIORITY_HIGH, 'include/notifier.php', 'relocate', $newuid);
info(t("Done. You can now login with your username and password"));
- goaway(App::get_baseurl() . "/login");
+ goaway(System::baseUrl() . "/login");
}