<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Module;
use Friendica\BaseModule;
+use Friendica\Core\System;
use Friendica\Core\Theme;
/**
$version = $info['version'] ?? '';
$credits = $info['credits'] ?? '';
- echo json_encode([
+ System::jsonExit([
'img' => Theme::getScreenshot($theme),
'desc' => $description,
'version' => $version,
'credits' => $credits,
]);
}
- exit();
+ System::exit();
}
}