]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ThemeDetails.php
Move jsonError out of Factory\Api\Mastodon\Error->Forbidden
[friendica.git] / src / Module / ThemeDetails.php
index 1bd45913a65b08f9f9b4c1c54bb35ec4f8cef63f..fed86d1e8b615d25ba8066b8094187e86072c0fe 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -41,14 +41,13 @@ class ThemeDetails extends BaseModule
                        $version     = $info['version']     ?? '';
                        $credits     = $info['credits']     ?? '';
 
-                       System::jsonExit([
+                       $this->jsonExit([
                                'img'     => Theme::getScreenshot($theme),
                                'desc'    => $description,
                                'version' => $version,
                                'credits' => $credits,
                        ]);
                }
-               DI::page()->logRuntime();
-               exit();
+               System::exit();
        }
 }