http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96197

Revision: 96197
Author:   maxsem
Date:     2011-09-03 15:18:03 +0000 (Sat, 03 Sep 2011)
Log Message:
-----------
generateTables.php: fixed check for installation of this extension

Modified Paths:
--------------
    trunk/extensions/wikihiero/generateTables.php

Modified: trunk/extensions/wikihiero/generateTables.php
===================================================================
--- trunk/extensions/wikihiero/generateTables.php       2011-09-03 15:03:35 UTC 
(rev 96196)
+++ trunk/extensions/wikihiero/generateTables.php       2011-09-03 15:18:03 UTC 
(rev 96197)
@@ -34,14 +34,15 @@
        public function __construct() {
                parent::__construct();
                $this->mDescription = 'Generate tables with hieroglyph 
information';
-               // if ( !MWInit::classExists( 'WikiHiero' ) ) {
-                       // $this->error( "Please install WikiHiero first!\n", 
true );
-               // }
 
                $this->moreTables = str_replace( "\r", '', $this->moreTables );
        }
        
        public function execute() {
+               if ( !defined( 'WIKIHIERO_VERSION' ) ) {
+                       $this->error( "Please install WikiHiero first!\n", true 
);
+               }
+
                $wh_prefabs = "\$wh_prefabs = array(\n";
                $wh_files   = "\$wh_files   = array(\n";
 


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

Reply via email to