Index: trunk/extensions/wikihiero/wh_list.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -// File created by generateTables.php version 0.3.0alpha |
5 | | -// 2011/08/20 at 09:31 |
| 4 | +// File created by generateTables.php version 1.0alpha |
| 5 | +// 2011-08-21 at 12:00 |
6 | 6 | |
7 | 7 | $wh_prefabs = array( |
8 | 8 | "a&A1", |
Index: trunk/extensions/wikihiero/wikihiero.php |
— | — | @@ -1,29 +1,28 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | | -////////////////////////////////////////////////////////////////////////// |
5 | | -// |
6 | | -// WikiHiero - A PHP convert from text using "Manual for the encoding of |
7 | | -// hieroglyphic texts for computer input" syntax to HTML entities (table and |
8 | | -// images). |
9 | | -// |
10 | | -// Copyright (C) 2004 Guillaume Blanchard (Aoineko) |
11 | | -// |
12 | | -// This program is free software; you can redistribute it and/or |
13 | | -// modify it under the terms of the GNU General Public License |
14 | | -// as published by the Free Software Foundation; either version 2 |
15 | | -// of the License, or any later version. |
16 | | -// |
17 | | -// This program is distributed in the hope that it will be useful, |
18 | | -// but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 | | -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20 | | -// GNU General Public License for more details. |
21 | | -// |
22 | | -// You should have received a copy of the GNU General Public License |
23 | | -// along with this program; if not, write to the Free Software |
24 | | -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
25 | | -// |
26 | | -////////////////////////////////////////////////////////////////////////// |
| 4 | +/** |
| 5 | + * WikiHiero - adds Ancient Egyptian hieroglyphs support to MediaWiki |
| 6 | + * |
| 7 | + * Copyright (C) 2004 Guillaume Blanchard (Aoineko) |
| 8 | + * |
| 9 | + * This program is free software; you can redistribute it and/or modify |
| 10 | + * it under the terms of the GNU General Public License as published by |
| 11 | + * the Free Software Foundation; either version 2 of the License, or |
| 12 | + * (at your option) any later version. |
| 13 | + * |
| 14 | + * This program is distributed in the hope that it will be useful, |
| 15 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | + * GNU General Public License for more details. |
| 18 | + * |
| 19 | + * You should have received a copy of the GNU General Public License along |
| 20 | + * with this program; if not, write to the Free Software Foundation, Inc., |
| 21 | + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 22 | + * http://www.gnu.org/copyleft/gpl.html |
| 23 | + */ |
27 | 24 | |
| 25 | +define( 'WIKIHIERO_VERSION', '1.0alpha' ); |
| 26 | + |
28 | 27 | $wgHooks['ParserFirstCallInit'][] = 'wfRegisterWikiHiero'; |
29 | 28 | $wgHooks['BeforePageDisplay'][] = 'wfHieroBeforePageDisplay'; |
30 | 29 | |
— | — | @@ -31,6 +30,7 @@ |
32 | 31 | $wgExtensionCredits['parserhook'][] = array( |
33 | 32 | 'path' => __FILE__, |
34 | 33 | 'name' => 'WikiHiero', |
| 34 | + 'version' => WIKIHIERO_VERSION, |
35 | 35 | 'author' => array( 'Guillaume Blanchard', 'Max Semenik' ), |
36 | 36 | 'url' => 'http://www.mediawiki.org/wiki/Extension:WikiHiero', |
37 | 37 | 'descriptionmsg' => 'wikihiero-desc', |
Index: trunk/extensions/wikihiero/SpecialHieroglyphs.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | Html::openElement( 'form', |
49 | 49 | array( |
50 | 50 | 'method' => 'get', |
51 | | - 'action' => SpecialPage::getTitleFor( 'Hieroglyphs' )->getLinkUrl(), |
| 51 | + 'action' => $this->getTitle()->getLinkUrl(), |
52 | 52 | ) |
53 | 53 | ) |
54 | 54 | . Html::element( 'textarea', array( 'id' => 'hiero-text', 'name' => 'text' ), $text ) |
Index: trunk/extensions/wikihiero/modules/ext.wikihiero.Special.js |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | 'text': '<hiero>' + text + '</hiero>', |
25 | 25 | 'disablepp': '' |
26 | 26 | }; |
27 | | - $.getJSON( mw.config.get( 'wgServer' ) + mw.config.get( 'wgScriptPath' ) + '/api' + mw.config.get( 'wgScriptExtension' ), |
| 27 | + $.getJSON( mw.config.get( 'wgScriptPath' ) + '/api' + mw.config.get( 'wgScriptExtension' ), |
28 | 28 | data, |
29 | 29 | function( data ) { |
30 | 30 | var html = '<table class="wikitable">' |
Index: trunk/extensions/wikihiero/generateTables.php |
— | — | @@ -70,8 +70,8 @@ |
71 | 71 | |
72 | 72 | $file = fopen( 'wh_list.php', 'w+' ); |
73 | 73 | fwrite( $file, "<?php\n\n" ); |
74 | | - fwrite( $file, '// File created by generateTables.php version ' . WikiHiero::VERSION . "\n" ); |
75 | | - fwrite( $file, '// ' . date( 'Y/m/d \a\t H:i' ) . "\n\n" ); |
| 74 | + fwrite( $file, '// File created by generateTables.php version ' . WIKIHIERO_VERSION . "\n" ); |
| 75 | + fwrite( $file, '// ' . date( 'Y-m-d \a\t H:i' ) . "\n\n" ); |
76 | 76 | fwrite( $file, "$wh_prefabs\n\n$wh_files\n\n{$this->moreTables}\n" ); |
77 | 77 | fclose( $file ); |
78 | 78 | } |
Index: trunk/extensions/wikihiero/wikihiero.body.php |
— | — | @@ -61,7 +61,6 @@ |
62 | 62 | define( "WH_DEBUG_MODE", false ); |
63 | 63 | |
64 | 64 | class WikiHiero { |
65 | | - const VERSION = '0.3.0alpha'; |
66 | 65 | const IMG_EXT = 'png'; |
67 | 66 | |
68 | 67 | private $scale = 100; |