From cba4e4b1000d698bfd211ea4ab8107b4ff821ed8 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 9 Jul 2018 16:50:24 +0100 Subject: [PATCH] Release version 1.0.21 Add update files + release v1.0.21 --- ISSUE_TEMPLATE.md | 2 +- README.md | 4 ++-- changelog.txt | 11 ++++++++++- core/includes/updates/1020.php | 20 ++++++++++++++++++++ pages/install.php | 4 ++-- 5 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 core/includes/updates/1020.php diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index b995b96da4..092c7afed8 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -11,7 +11,7 @@ #### Example: **What kind of issue is it (Question, Bug, etc.)?** Bug. -**In which version of NamelessMC did it occur (1.x.x)?** Release 1.0.19. +**In which version of NamelessMC did it occur (1.x.x)?** Release 1.0.21. **How would you describe the issue?** The index does not load up at all. **Do you have (relevant) resources about this issue (Logs, pictures, etc.)?** Yes, I have the a screenshot of it. [Click here](http://i.imgur.com/QqkXhVx.png) **Do you have an idea how or where the issue occurs?** I think it has to do with the "index.php" file but not sure. diff --git a/README.md b/README.md index b8bea9b7dc..8a3abfa47c 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ Nameless version 2.0.0 is currently in development and the source can be viewed on the v2 branch. Until it's ready for production use, any pre-releases can be found here: https://github.com/NamelessMC/Nameless/releases. -## Version 1.0.20 +## Version 1.0.21 NamelessMC is a free, easy to use & powerful website software for your Minecraft server, which includes a large range of features. -Version 1.0.20 features: +Version 1.0.21 features: - Template and theme system - Languages diff --git a/changelog.txt b/changelog.txt index e150f7cf46..e853d92854 100644 --- a/changelog.txt +++ b/changelog.txt @@ -536,4 +536,13 @@ The notes for each release - Add default order value for CraftingStore integration - Fix signin details being remembered if tfa is cancelled - Update 404 and forum maintenance mode back buttons to work on Safari -- Automatically load addon languages \ No newline at end of file +- Automatically load addon languages + +1.0.21 +- Update Italian translation +- Add basic user template variables +- Use v4 API for CraftingStore +- Remove MinecraftMarket integration +- Ensure reputation user exists +- Update DB class +- Update htmlspecialchars calls \ No newline at end of file diff --git a/core/includes/updates/1020.php b/core/includes/updates/1020.php new file mode 100644 index 0000000000..747aeaf283 --- /dev/null +++ b/core/includes/updates/1020.php @@ -0,0 +1,20 @@ + 1.0.21 updater +ini_set('display_startup_errors',1); +ini_set('display_errors',1); +error_reporting(-1); + +// Update version number +$version_number_id = $queries->getWhere('settings', array('name', '=', 'version')); +$version_number_id = $version_number_id[0]->id; + +$queries->update('settings', $version_number_id, array( + 'value' => '1.0.21' +)); + +$version_update_id = $queries->getWhere('settings', array('name', '=', 'version_update')); +$version_update_id = $version_update_id[0]->id; + +$queries->update('settings', $version_update_id, array( + 'value' => 'false' +)); diff --git a/pages/install.php b/pages/install.php index 0a32397853..527a19af82 100644 --- a/pages/install.php +++ b/pages/install.php @@ -674,7 +674,7 @@ // Version update $version_id = $queries->getWhere('settings', array('name', '=', 'version')); $queries->update('settings', $version_id[0]->id, array( - 'value' => '1.0.20' + 'value' => '1.0.21' )); @@ -1055,7 +1055,7 @@ ), 28 => array( 'name' => 'version', - 'value' => '1.0.20' + 'value' => '1.0.21' ), 29 => array( 'name' => 'version_checked',