From f3ed00f9394ebe709fb525adf2bbd0aacb6ed641 Mon Sep 17 00:00:00 2001 From: Tom Hutchison Date: Fri, 17 Jan 2020 23:36:47 -0500 Subject: [PATCH] Version bump, fix for suppress and restore warnings, requires in skin.json, deletion of duplicated prepend in foreground.js --- CHANGELOG.md | 6 ++++++ Foreground.skin.php | 6 +++--- assets/scripts/foreground.js | 2 -- skin.json | 7 +++++-- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44821afb..b53d31d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Version 2.3.0 +* [compatibility, deprecated] Fix for deprecated wfSuppressWarnings and wfRestoreWarnings with new Wikimedia\... +* [bug, code] Remove duplicated prepend call in foreground.js +* [b/c break] Version minor bump, MW >= 1.34 now required +* [enhancement] Use of requires MW >= 1.34 in skin.json + ## Version 2.2.4 * [bug] PR #352 Breaks Compatibility with MW < 1.34 - Rollback for re-release as v2.3.0 * [compatibility] Final Release v2.x.x requires MW <= 1.33 diff --git a/Foreground.skin.php b/Foreground.skin.php index 83949eb1..3698cca6 100755 --- a/Foreground.skin.php +++ b/Foreground.skin.php @@ -60,7 +60,7 @@ class foregroundTemplate extends BaseTemplate { public function execute() { global $wgUser; global $wgForegroundFeatures; - wfSuppressWarnings(); + Wikimedia\suppressWarnings(); $this->html('headelement'); switch ($wgForegroundFeatures['enableTabs']) { case true: @@ -278,7 +278,7 @@ public function execute() { +?> \ No newline at end of file diff --git a/assets/scripts/foreground.js b/assets/scripts/foreground.js index ff16e0df..64ece51b 100644 --- a/assets/scripts/foreground.js +++ b/assets/scripts/foreground.js @@ -1,4 +1,3 @@ - jQuery(document).ready(function() { // Log errors @@ -76,5 +75,4 @@ if ( jQuery( '#ca-addsection' ).length ) { jQuery(window).load(function() { jQuery('li#ca-ve-edit a').prepend('
') jQuery('li#ca-viewsource a').prepend('
') - jQuery('li#ca-edit a').prepend('
') }); \ No newline at end of file diff --git a/skin.json b/skin.json index 83713cfb..8d2c9738 100644 --- a/skin.json +++ b/skin.json @@ -1,6 +1,6 @@ { "name": "Foreground", - "version": "2.2.4", + "version": "2.3.0", "author": [ "Garrick Van Buren", "Jamie Thingelstad", @@ -14,6 +14,9 @@ "ValidSkinNames": { "foreground": "Foreground" }, + "requires": { + "MediaWiki": ">= 1.34.0" + }, "MessagesDirs": { "SkinForeground": [ "i18n" @@ -72,4 +75,4 @@ }, "config": {}, "manifest_version": 1 -} +} \ No newline at end of file