]> git.mxchange.org Git - friendica.git/blobdiff - mod/uexport.php
Better content detection for posts to Twitter
[friendica.git] / mod / uexport.php
index 554c02225b3814f3780d0fd06cd02590490b8c49..e0b9be91f393ea2b222bb877fe3bf81fb550bd77 100644 (file)
@@ -1,5 +1,8 @@
 <?php
 
+use Friendica\App;
+use Friendica\Core\System;
+
 function uexport_init(App $a) {
        if (!local_user()) {
                killme();
@@ -9,7 +12,6 @@ function uexport_init(App $a) {
        settings_init($a);
 }
 
-/// @TODO Change space -> tab where wanted
 function uexport_content(App $a) {
 
        if ($a->argc > 1) {
@@ -41,7 +43,7 @@ function uexport_content(App $a) {
 
        $tpl = get_markup_template("uexport.tpl");
        return replace_macros($tpl, array(
-               '$baseurl' => App::get_baseurl(),
+               '$baseurl' => System::baseUrl(),
                '$title' => t('Export personal data'),
                '$options' => $options
        ));
@@ -112,7 +114,7 @@ function uexport_account($a) {
        $output = array(
                'version' => FRIENDICA_VERSION,
                'schema' => DB_UPDATE_VERSION,
-               'baseurl' => App::get_baseurl(),
+               'baseurl' => System::baseUrl(),
                'user' => $user,
                'contact' => $contact,
                'profile' => $profile,
@@ -149,11 +151,6 @@ function uexport_all(App $a) {
                        intval($x),
                        intval(500)
                );
-               /* if (dbm::is_result($r)) {
-                 foreach($r as $rr)
-                 foreach($rr as $k => $v)
-                 $item[][$k] = $v;
-                 } */
 
                $output = array('item' => $r);
                echo json_encode($output) . "\n";