mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:50:10 +00:00
Unified JSON exit
This commit is contained in:
parent
344e12c4fc
commit
d15023fe4b
21 changed files with 61 additions and 80 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Theme;
|
||||
|
||||
/**
|
||||
|
@ -40,7 +41,7 @@ class ThemeDetails extends BaseModule
|
|||
$version = $info['version'] ?? '';
|
||||
$credits = $info['credits'] ?? '';
|
||||
|
||||
echo json_encode([
|
||||
System::jsonExit([
|
||||
'img' => Theme::getScreenshot($theme),
|
||||
'desc' => $description,
|
||||
'version' => $version,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue