aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-09-19 21:56:41 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-09-19 21:56:41 +0200
commitd1822e821a1d6a958f2e2eef02b9ab63d805e708 (patch)
tree6ba7cc499e21c84d80451b76a7c53156a772bc0f /build
parent28ff362ec07b2d9fcef142460a34c999ee1d452a (diff)
downloadforums-d1822e821a1d6a958f2e2eef02b9ab63d805e708.tar
forums-d1822e821a1d6a958f2e2eef02b9ab63d805e708.tar.gz
forums-d1822e821a1d6a958f2e2eef02b9ab63d805e708.tar.bz2
forums-d1822e821a1d6a958f2e2eef02b9ab63d805e708.tar.xz
forums-d1822e821a1d6a958f2e2eef02b9ab63d805e708.zip
[ticket/16160] Make script compatible with PHP 5.x
PHPBB3-16160
Diffstat (limited to 'build')
-rw-r--r--build/generate_package_json.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/build/generate_package_json.php b/build/generate_package_json.php
index ed9341fa14..b880008577 100644
--- a/build/generate_package_json.php
+++ b/build/generate_package_json.php
@@ -21,14 +21,13 @@ define('IN_PHPBB', true);
include_once('../phpBB/includes/functions.php');
$json_data = new \stdClass();
-$json_data->metadata = new class
-{
- public $current_version_date;
- public $current_version;
- public $download_path;
- public $show_update_package = true;
- public $historic = false;
-};
+$json_data->metadata = new stdClass();
+
+$json_data->metadata->current_version_date = '';
+$json_data->metadata->current_version = '';
+$json_data->metadata->download_path = '';
+$json_data->metadata->show_update_package = true;
+$json_data->metadata->historic = false;
$json_data->package = [];
@@ -92,7 +91,7 @@ foreach ($older_verions as $version)
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'))
{