Index: trunk/extensions/Cite/SpecialCite_body.php |
— | — | @@ -15,6 +15,7 @@ |
16 | 16 | |
17 | 17 | function execute( $par ) { |
18 | 18 | global $wgOut, $wgRequest, $wgUseTidy; |
| 19 | + wfLoadExtensionMessages( 'SpecialCite' ); |
19 | 20 | |
20 | 21 | // Having tidy on causes whitespace and <pre> tags to |
21 | 22 | // be generated around the output of the CiteOutput |
Index: trunk/extensions/Cite/SpecialCite.php |
— | — | @@ -13,7 +13,6 @@ |
14 | 14 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
15 | 15 | */ |
16 | 16 | |
17 | | -$wgExtensionFunctions[] = 'wfSpecialCite'; |
18 | 17 | $wgExtensionCredits['specialpage'][] = array( |
19 | 18 | 'name' => 'Cite', |
20 | 19 | 'version' => '2008-01-09', |
— | — | @@ -33,11 +32,8 @@ |
34 | 33 | } |
35 | 34 | extAddSpecialPage( dirname(__FILE__) . '/SpecialCite_body.php', 'Cite', 'SpecialCite' ); |
36 | 35 | |
37 | | -function wfSpecialCite() { |
38 | | - wfLoadExtensionMessages( 'SpecialCite' ); |
39 | | -} |
40 | | - |
41 | 36 | function wfSpecialCiteNav( &$skintemplate, &$nav_urls, &$oldid, &$revid ) { |
| 37 | + wfLoadExtensionMessages( 'SpecialCite' ); |
42 | 38 | if ( $skintemplate->mTitle->isContentPage() && $revid !== 0 ) |
43 | 39 | $nav_urls['cite'] = array( |
44 | 40 | 'text' => wfMsg( 'cite_article_link' ), |
— | — | @@ -48,6 +44,7 @@ |
49 | 45 | } |
50 | 46 | |
51 | 47 | function wfSpecialCiteToolbox( &$monobook ) { |
| 48 | + wfLoadExtensionMessages( 'SpecialCite' ); |
52 | 49 | if ( isset( $monobook->data['nav_urls']['cite'] ) ) |
53 | 50 | if ( $monobook->data['nav_urls']['cite']['href'] == '' ) { |
54 | 51 | ?><li id="t-iscite"><?php echo $monobook->msg( 'cite_article_link' ); ?></li><?php |