mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/16160] Make script compatible with PHP 5.x
PHPBB3-16160
This commit is contained in:
parent
28ff362ec0
commit
d1822e821a
1 changed files with 8 additions and 9 deletions
|
@ -21,14 +21,13 @@ define('IN_PHPBB', true);
|
||||||
include_once('../phpBB/includes/functions.php');
|
include_once('../phpBB/includes/functions.php');
|
||||||
|
|
||||||
$json_data = new \stdClass();
|
$json_data = new \stdClass();
|
||||||
$json_data->metadata = new class
|
$json_data->metadata = new stdClass();
|
||||||
{
|
|
||||||
public $current_version_date;
|
$json_data->metadata->current_version_date = '';
|
||||||
public $current_version;
|
$json_data->metadata->current_version = '';
|
||||||
public $download_path;
|
$json_data->metadata->download_path = '';
|
||||||
public $show_update_package = true;
|
$json_data->metadata->show_update_package = true;
|
||||||
public $historic = false;
|
$json_data->metadata->historic = false;
|
||||||
};
|
|
||||||
|
|
||||||
$json_data->package = [];
|
$json_data->package = [];
|
||||||
|
|
||||||
|
@ -92,7 +91,7 @@ foreach ($older_verions as $version)
|
||||||
|
|
||||||
echo(json_encode($json_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");
|
echo(json_encode($json_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . "\n");
|
||||||
|
|
||||||
function phpbb_add_package_file(array &$package_list, string $name, string $file_name, string $type, string $subtype, string $from = '')
|
function phpbb_add_package_file(array &$package_list, $name, $file_name, $type, $subtype, $from = '')
|
||||||
{
|
{
|
||||||
if (!file_exists(__DIR__ . '/new_version/release_files/' . $file_name . '.zip'))
|
if (!file_exists(__DIR__ . '/new_version/release_files/' . $file_name . '.zip'))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue