Index: trunk/extensions/wikihiero/generateTables.php |
— | — | @@ -34,14 +34,15 @@ |
35 | 35 | public function __construct() { |
36 | 36 | parent::__construct(); |
37 | 37 | $this->mDescription = 'Generate tables with hieroglyph information'; |
38 | | - // if ( !MWInit::classExists( 'WikiHiero' ) ) { |
39 | | - // $this->error( "Please install WikiHiero first!\n", true ); |
40 | | - // } |
41 | 38 | |
42 | 39 | $this->moreTables = str_replace( "\r", '', $this->moreTables ); |
43 | 40 | } |
44 | 41 | |
45 | 42 | public function execute() { |
| 43 | + if ( !defined( 'WIKIHIERO_VERSION' ) ) { |
| 44 | + $this->error( "Please install WikiHiero first!\n", true ); |
| 45 | + } |
| 46 | + |
46 | 47 | $wh_prefabs = "\$wh_prefabs = array(\n"; |
47 | 48 | $wh_files = "\$wh_files = array(\n"; |
48 | 49 | |