App::get_baseurl is now replaced with System::baseUrl

This commit is contained in:
Michael 2017-08-26 07:32:10 +00:00
parent 3c24bed412
commit 5adfeb0bd5
134 changed files with 603 additions and 624 deletions

View file

@ -40,7 +40,7 @@ function user_allow($hash) {
intval($user[0]['uid'])
);
if (dbm::is_result($r) && $r[0]['net-publish']) {
$url = App::get_baseurl() . '/profile/' . $user[0]['nickname'];
$url = System::baseUrl() . '/profile/' . $user[0]['nickname'];
if ($url && strlen(get_config('system','directory'))) {
proc_run(PRIORITY_LOW, "include/directory.php", $url);
}
@ -51,7 +51,7 @@ function user_allow($hash) {
send_register_open_eml(
$user[0]['email'],
$a->config['sitename'],
App::get_baseurl(),
System::baseUrl(),
$user[0]['username'],
$register[0]['password']);
@ -119,13 +119,13 @@ function regmod_content(App $a) {
if ($cmd === 'deny') {
user_deny($hash);
goaway(App::get_baseurl()."/admin/users/");
goaway(System::baseUrl()."/admin/users/");
killme();
}
if ($cmd === 'allow') {
user_allow($hash);
goaway(App::get_baseurl()."/admin/users/");
goaway(System::baseUrl()."/admin/users/");
killme();
}
}