]> git.mxchange.org Git - friendica.git/blobdiff - mod/removeme.php
Merge pull request #3789 from Alkarex/french_regions
[friendica.git] / mod / removeme.php
index b7bdaa9400c765e4a696666ff32940a93bd71a10..5dcd33e8f57d2f63b8ae01a7648deb1f21bd3e5e 100644 (file)
@@ -1,6 +1,9 @@
 <?php
 
-function removeme_post(App &$a) {
+use Friendica\App;
+use Friendica\Core\System;
+
+function removeme_post(App $a) {
 
        if (! local_user()) {
                return;
@@ -32,10 +35,10 @@ function removeme_post(App &$a) {
 
 }
 
-function removeme_content(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' => $a->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.'),