]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ParseUrl.php
Merge pull request #13831 from friendica/warning
[friendica.git] / src / Module / ParseUrl.php
index dfccafad42695cdeda008b9a7368aa607adc940c..6620229cd16c78fcb6114d710d7d413ff70b493c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -100,7 +100,7 @@ class ParseUrl extends BaseModule
 
                if ($arr['text']) {
                        if ($format == 'json') {
-                               System::jsonExit($arr['text']);
+                               $this->jsonExit($arr['text']);
                        } else {
                                $this->httpExit($arr['text']);
                        }
@@ -133,7 +133,7 @@ class ParseUrl extends BaseModule
                                $ret['success'] = true;
                        }
 
-                       System::jsonExit($ret);
+                       $this->jsonExit($ret);
                } else {
                        $this->httpExit(BBCode::embedURL($url, empty($_GET['noAttachment']), $title, $description, $_GET['tags'] ?? ''));
                }