From a925e9eae157db75f92130b97805e572e2644229 Mon Sep 17 00:00:00 2001 From: Jackmcbarn Date: Mon, 29 Dec 2014 14:13:39 -0500 Subject: [PATCH] Restore backwards compatibility When status indicators were added, backwards compatibility was unnecessarily broken. This makes things like looking at old non-rebased branches, or running git bisect, unnecessarily annoying. This change adds an is_callable to restore backwards compatibility and removes the version check that was added in response to this break. Change-Id: Ia05aa73a1b027e667c52f54b6d6fdf6f42bbbadf --- Vector.php | 6 ------ VectorTemplate.php | 6 +++++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Vector.php b/Vector.php index 784bf0b..4b7f95e 100644 --- a/Vector.php +++ b/Vector.php @@ -22,12 +22,6 @@ * @ingroup Skins */ -if ( version_compare( $GLOBALS['wgVersion'], '1.25c', '<' ) ) { - echo 'This version of the Vector skin requires at least MediaWiki 1.25, you have ' . $GLOBALS['wgVersion'] . - '. You can download a more appropriate version here: https://www.mediawiki.org/wiki/Special:SkinDistributor/Vector'; - exit(); -} - $GLOBALS['wgExtensionCredits']['skin'][] = array( 'path' => __FILE__, 'name' => 'Vector', diff --git a/VectorTemplate.php b/VectorTemplate.php index ab40693..4acfa8c 100644 --- a/VectorTemplate.php +++ b/VectorTemplate.php @@ -102,7 +102,11 @@ class VectorTemplate extends BaseTemplate { - getIndicators(); ?> + getIndicators(); + } + ?>