Index: trunk/extensions/DoubleWiki/DoubleWiki_body.php |
— | — | @@ -24,14 +24,6 @@ |
25 | 25 | */ |
26 | 26 | var $tags = "/<\/?(b|del|i|ins|u|font|big|small|sub|sup|h1|h2|h3|h4|h5|h6|cite|code|em|s|strike|strong|tt|tr|td|var|div|center|blockquote|ol|ul|dl|table|caption|pre|ruby|rt|rb|rp|p|span)([\s](.*?)>|>)/i"; |
27 | 27 | |
28 | | - /** |
29 | | - * Constructor |
30 | | - */ |
31 | | - function __construct() { |
32 | | - global $wgHooks; |
33 | | - $wgHooks['OutputPageBeforeHTML'][] = array( &$this, 'addMatchedText' ); |
34 | | - } |
35 | | - |
36 | 28 | /* |
37 | 29 | * Read the list of matched phrases and add tags to the html output. |
38 | 30 | */ |
Index: trunk/extensions/DoubleWiki/DoubleWiki.php |
— | — | @@ -22,9 +22,9 @@ |
23 | 23 | # that can be accessed through interlanguage links |
24 | 24 | |
25 | 25 | |
26 | | -$wgHooks['ParserFirstCallInit'][] = 'wfDoubleWiki'; |
27 | 26 | $wgExtensionMessagesFiles['DoubleWiki'] = dirname(__FILE__) . '/DoubleWiki.i18n.php'; |
28 | 27 | $wgAutoloadClasses['DoubleWiki'] = dirname( __FILE__ ) . "/DoubleWiki_body.php"; |
| 28 | +$wgHooks['OutputPageBeforeHTML'][] = array( new DoubleWiki, 'addMatchedText' ); |
29 | 29 | |
30 | 30 | $wgExtensionCredits['other'][] = array( |
31 | 31 | 'path' => __FILE__, |
— | — | @@ -33,11 +33,3 @@ |
34 | 34 | 'url' => 'http://wikisource.org/wiki/Wikisource:DoubleWiki_Extension', |
35 | 35 | 'descriptionmsg' => 'doublewiki-desc', |
36 | 36 | ); |
37 | | - |
38 | | - |
39 | | -function wfDoubleWiki() { |
40 | | - new DoubleWiki; |
41 | | - return true; |
42 | | -} |
43 | | - |
44 | | - |