Cicalese has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/90556


Change subject: Added version warning.
......................................................................

Added version warning.

Change-Id: Id99ddc4cb7aed65a3be4d555ca7c132a63b31eac
---
M TitleIcon.php
1 file changed, 7 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TitleIcon 
refs/changes/56/90556/1

diff --git a/TitleIcon.php b/TitleIcon.php
index f0cb0cf..b163fdf 100644
--- a/TitleIcon.php
+++ b/TitleIcon.php
@@ -22,11 +22,13 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
-/**
-* To activate the functionality of this extension include the following
-* in your LocalSettings.php file:
-* include_once("$IP/extensions/TitleIcon/TitleIcon.php");
-*/
+if (!defined('MEDIAWIKI')) {
+       die('<b>Error:</b> This file is part of a MediaWiki extension and 
cannot be run standalone.');
+}
+
+if (version_compare($wgVersion, '1.21', 'lt')) {
+       die('<b>Error:</b> This version of TitleIcon is only compatible with 
MediaWiki 1.21 or above.');
+}
 
 $wgExtensionCredits['parserhook'][] = array (
        'name' => 'Title Icon',

-- 
To view, visit https://gerrit.wikimedia.org/r/90556
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id99ddc4cb7aed65a3be4d555ca7c132a63b31eac
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TitleIcon
Gerrit-Branch: master
Gerrit-Owner: Cicalese <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to