]> git.mxchange.org Git - friendica.git/blobdiff - mod/removeme.php
Merge pull request #3789 from Alkarex/french_regions
[friendica.git] / mod / removeme.php
index 40033624d8889ac330a8be2c7f725febef8e2cfc..5dcd33e8f57d2f63b8ae01a7648deb1f21bd3e5e 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
+
 function removeme_post(App $a) {
 
        if (! local_user()) {
@@ -35,7 +38,7 @@ function removeme_post(App $a) {
 function removeme_content(App $a) {
 
        if (! local_user()) {
-               goaway(z_root());
+               goaway(System::baseUrl());
        }
 
        $hash = random_string();
@@ -47,7 +50,7 @@ function removeme_content(App $a) {
 
        $tpl = get_markup_template('removeme.tpl');
        $o .= replace_macros($tpl, array(
-               '$basedir' => App::get_baseurl(),
+               '$basedir' => System::baseUrl(),
                '$hash' => $hash,
                '$title' => t('Remove My Account'),
                '$desc' => t('This will completely remove your account. Once this has been done it is not recoverable.'),