]> git.mxchange.org Git - friendica.git/blobdiff - mod/uexport.php
Better content detection for posts to Twitter
[friendica.git] / mod / uexport.php
index d7c8934a5c9874ca55887019adb0469054059b0e..e0b9be91f393ea2b222bb877fe3bf81fb550bd77 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\System;
 
 function uexport_init(App $a) {
        if (!local_user()) {
@@ -11,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) {
@@ -43,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
        ));
@@ -114,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,
@@ -151,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";