Commit 88ed7e55 authored by Robert Nix's avatar Robert Nix

Merge branch 'update/133/Tilesheets' into 'master'

Update Tilesheets for 1.33

Closes #75

See merge request !53
parents 70537a35 3bf69ae2
......@@ -2,6 +2,15 @@
This changelog only shows recent version history, because of the lack of documentation from the former maintainers. The very first changelog (1.1.2) is likely incomplete.
## Version 4
### 4.2.2
* Fix HTML entities breaking input forms on TileTranslator and TileManager (#91)
* Update for MediaWiki 1.32/1.33:
* Updates for ApiBase::dieUsage (#94, #93) (chaud)
* Update Special:ViewTile for MediaWiki 1.32/1.33 (#92)
* Do not try to array_unique or foreach null. (#88) (Alexia E. Smith)
* Use addIndex for add_primary_key schema update, fixes failure when running update.php (#87) (Mischanix)
* Fix GrantPermissions. (#86) (Alexia E. Smith)
### 4.2.1
* Improve grammatical and formatting stuff on WhatUsesThisTile. Proper quotations, periods, colons, and bolding to match WhatLinksHere.
* Add pagination stuff to the bottom of WhatUsesThisTile.
......
{
"name": "Tilesheets",
"version": "4.2.1",
"version": "4.2.2",
"author": [
"[http://ftb.gamepedia.com/User:Jinbobo Jinbobo]",
"[http://ftb.gamepedia.com/User:Retep998 Peter Atashian]",
......
......@@ -61,7 +61,7 @@ class TileManager extends SpecialPage {
$id = $opts->getValue('id');
$mod = $opts->getValue('mod');
$item = $opts->getValue('item');
$item = htmlspecialchars_decode($opts->getValue('item'));
$x = $opts->getValue('x');
$y = $opts->getValue('y');
......@@ -240,7 +240,7 @@ class TileManager extends SpecialPage {
global $wgScript;
$form = "<table>";
$form .= TilesheetsForm::createFormRow('tile-manager', 'id', $id, "text", 'readonly="readonly"');
$form .= TilesheetsForm::createFormRow('tile-manager', 'item', $item);
$form .= TilesheetsForm::createFormRow('tile-manager', 'item', htmlspecialchars($item));
$form .= TilesheetsForm::createFormRow('tile-manager', 'mod', $mod);
$form .= TilesheetsForm::createInputHint('tile-manager', 'mod');
$form .= TilesheetsForm::createFormRow('tile-manager', 'x', $x);
......
......@@ -52,8 +52,8 @@ class TileTranslator extends SpecialPage {
}
$id = $opts->getValue('id');
$description = $opts->getValue('description');
$displayName = $opts->getValue('display_name');
$description = htmlspecialchars_decode($opts->getValue('description'));
$displayName = htmlspecialchars_decode($opts->getValue('display_name'));
$language = $opts->getValue('language');
$update = $opts->getValue('update');
$delete = $opts->getValue('delete');
......@@ -192,8 +192,8 @@ class TileTranslator extends SpecialPage {
global $wgScript;
$form = "<table>";
$form .= TilesheetsForm::createFormRow('tile-translator', 'id', $id, "text", 'readonly="readonly"');
$form .= TilesheetsForm::createFormRow('tile-translator', 'display_name', $displayName);
$form .= TilesheetsForm::createFormRow('tile-translator', 'description', $description);
$form .= TilesheetsForm::createFormRow('tile-translator', 'display_name', htmlspecialchars($displayName));
$form .= TilesheetsForm::createFormRow('tile-translator', 'description', htmlspecialchars($description));
$form .= TilesheetsForm::createFormRow('tile-translator', 'language', $language);
$form .= TilesheetsForm::createInputHint('tile-translator', 'language');
$form .= TilesheetsForm::createDeleteCheckboxRow('tile-translator');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment