Index: trunk/extensions/CSS/CSS.php |
— | — | @@ -25,6 +25,7 @@ |
26 | 26 | $wgCSSIdentifier = 'css-extension'; |
27 | 27 | |
28 | 28 | $wgHooks['ParserFirstCallInit'][] = 'wfCSSParserFirstCallInit'; |
| 29 | +// FIXME: LanguageGetMagic is deprecated. |
29 | 30 | $wgHooks['LanguageGetMagic'][] = 'wfCSSLanguageGetMagic'; |
30 | 31 | $wgHooks['RawPageViewBeforeOutput'][] = 'wfCSSRawPageViewBeforeOutput'; |
31 | 32 | |
Index: trunk/extensions/ContributionReporting/ContributionReporting.php |
— | — | @@ -41,6 +41,7 @@ |
42 | 42 | |
43 | 43 | $wgExtensionMessagesFiles['ContributionReporting'] = $dir . 'ContributionReporting.i18n.php'; |
44 | 44 | $wgExtensionMessagesFiles['ContributionReportingAlias'] = $dir . 'ContributionReporting.alias.php'; |
| 45 | +$wgExtensionMessagesFiles['ContributionReportingMagic'] = $dir . 'ContributionReporting.magic.php'; |
45 | 46 | |
46 | 47 | $wgAutoloadClasses['ContributionHistory'] = $dir . 'ContributionHistory_body.php'; |
47 | 48 | $wgAutoloadClasses['ContributionTotal'] = $dir . 'ContributionTotal_body.php'; |
— | — | @@ -144,7 +145,6 @@ |
145 | 146 | ) + $commonModuleInfo; |
146 | 147 | |
147 | 148 | $wgHooks['ParserFirstCallInit'][] = 'efContributionReportingSetup'; |
148 | | -$wgHooks['LanguageGetMagic'][] = 'efContributionReportingTotal_Magic'; |
149 | 149 | |
150 | 150 | /** |
151 | 151 | * @param $parser Parser |
— | — | @@ -156,18 +156,6 @@ |
157 | 157 | } |
158 | 158 | |
159 | 159 | /** |
160 | | - * Define the contributiontotal magic word |
161 | | - * Example: {{#contributiontotal:fundraiser=2011|fudgefactor=0}} |
162 | | - * @param $magicWords array |
163 | | - * @param $langCode string |
164 | | - * @return bool |
165 | | - */ |
166 | | -function efContributionReportingTotal_Magic( &$magicWords, $langCode ) { |
167 | | - $magicWords['contributiontotal'] = array( 0, 'contributiontotal' ); |
168 | | - return true; |
169 | | -} |
170 | | - |
171 | | -/** |
172 | 160 | * Automatically use a local or special database connection for reporting |
173 | 161 | * This connection will typically be to the CiviCRM master database |
174 | 162 | * @return DatabaseMysql |
Index: trunk/extensions/ContributionReporting/ContributionReporting.i18n.magic.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Magic words for extension. |
| 5 | + */ |
| 6 | + |
| 7 | +$magicWords = array(); |
| 8 | + |
| 9 | +/** English (English) */ |
| 10 | +$magicWords['en'] = array( |
| 11 | + 'contributiontotal' => array( 0, 'contributiontotal' ), |
| 12 | +); |
Property changes on: trunk/extensions/ContributionReporting/ContributionReporting.i18n.magic.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/CategoryMultisort/CategoryMultisort.i18n.magic.php |
— | — | @@ -0,0 +1,13 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Magic words for extension. |
| 5 | + */ |
| 6 | + |
| 7 | +$magicWords = array(); |
| 8 | + |
| 9 | +/** English (English) */ |
| 10 | +$magicWords['en'] = array( |
| 11 | + 'CategoryMultisort' => array( 0, 'CategoryMultisort' ), |
| 12 | + 'CategoryDefaultMultisort' => array( 0, 'CategoryDefaultMultisort' ), |
| 13 | + 'CategoryUseMultisort' => array( 0, 'CategoryUseMultisort' ), |
| 14 | +); |
Property changes on: trunk/extensions/CategoryMultisort/CategoryMultisort.i18n.magic.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 15 | + native |
Added: svn:keywords |
2 | 16 | + Id |
Index: trunk/extensions/CategoryMultisort/CategoryMultisort.php |
— | — | @@ -17,6 +17,7 @@ |
18 | 18 | $wgAutoloadClasses['CategoryMultisortViewer'] = $dir . 'CategoryMultisort.class.php'; |
19 | 19 | |
20 | 20 | $wgExtensionMessagesFiles['CategoryMultisort'] = $dir . 'CategoryMultisort.i18n.php'; |
| 21 | +$wgExtensionMessagesFiles['CategoryMultisortMagic'] = $dir . 'CategoryMultisort.i18n.magic.php'; |
21 | 22 | |
22 | 23 | $wgCategoryMultisortHooks = new CategoryMultisortHooks(); |
23 | 24 | |
Index: trunk/extensions/CategoryMultisort/CategoryMultisort.hooks.php |
— | — | @@ -12,7 +12,6 @@ |
13 | 13 | foreach ( array( |
14 | 14 | 'LoadExtensionSchemaUpdates', |
15 | 15 | 'ParserFirstCallInit', |
16 | | - 'LanguageGetMagic', |
17 | 16 | 'ParserClearState', |
18 | 17 | 'ParserBeforeTidy', |
19 | 18 | 'LinksUpdate', |
— | — | @@ -71,13 +70,6 @@ |
72 | 71 | return true; |
73 | 72 | } |
74 | 73 | |
75 | | - function onLanguageGetMagic( &$magicWords, $langCode ) { |
76 | | - $magicWords['CategoryMultisort'] = array( 0, 'CategoryMultisort' ); |
77 | | - $magicWords['CategoryDefaultMultisort'] = array( 0, 'CategoryDefaultMultisort' ); |
78 | | - $magicWords['CategoryUseMultisort'] = array( 0, 'CategoryUseMultisort' ); |
79 | | - return true; |
80 | | - } |
81 | | - |
82 | 74 | function onParserClearState( $parser ) { |
83 | 75 | $parser->getOutput()->mCategoryMultisorts = array(); |
84 | 76 | $parser->getOutput()->mCategoryDefaultMultisorts = array(); |
Index: trunk/extensions/Comments/Comment.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | // Extension credits that will show up on Special:Version |
26 | 26 | $wgExtensionCredits['parserhook'][] = array( |
27 | 27 | 'name' => 'Comments', |
28 | | - 'version' => '2.5', |
| 28 | + 'version' => '2.6', |
29 | 29 | 'author' => array( 'David Pean', 'Misza', 'Jack Phoenix' ), |
30 | 30 | 'description' => 'Adds <tt><comments></tt> parser hook that allows commenting on articles', |
31 | 31 | 'url' => 'https://www.mediawiki.org/wiki/Extension:Comments' |
— | — | @@ -61,6 +61,7 @@ |
62 | 62 | // Set up the new special pages |
63 | 63 | $dir = dirname( __FILE__ ) . '/'; |
64 | 64 | $wgExtensionMessagesFiles['Comments'] = $dir . 'Comments.i18n.php'; |
| 65 | +$wgExtensionMessagesFiles['CommentsMagic'] = $dir . 'Comments.i18n.magic.php'; |
65 | 66 | $wgAutoloadClasses['Comment'] = $dir . 'CommentClass.php'; |
66 | 67 | $wgAutoloadClasses['CommentIgnoreList'] = $dir . 'SpecialCommentIgnoreList.php'; |
67 | 68 | $wgAutoloadClasses['CommentListGet'] = $dir . 'CommentAction.php'; |
— | — | @@ -158,18 +159,6 @@ |
159 | 160 | return $output; |
160 | 161 | } |
161 | 162 | |
162 | | -// Translations for {{NUMBEROFCOMMENTS}} |
163 | | -//$wgExtensionMessagesFiles['NumberOfComments'] = $dir . 'Comments.i18n.magic.php'; |
164 | | - |
165 | | -$wgHooks['LanguageGetMagic'][] = 'wfNumberOfCommentsMagicWord'; |
166 | | -function wfNumberOfCommentsMagicWord( &$magicWords, $langID ) { |
167 | | - // tell MediaWiki that {{NUMBEROFCOMMENTS}} and all case variants found in |
168 | | - // wiki text should be mapped to magic ID 'NUMBEROFCOMMENTS' |
169 | | - // (0 means case-insensitive) |
170 | | - $magicWords['NUMBEROFCOMMENTS'] = array( 0, 'NUMBEROFCOMMENTS' ); |
171 | | - return true; |
172 | | -} |
173 | | - |
174 | 163 | $wgHooks['ParserGetVariableValueSwitch'][] = 'wfNumberOfCommentsAssignValue'; |
175 | 164 | function wfNumberOfCommentsAssignValue( &$parser, &$cache, &$magicWordId, &$ret ) { |
176 | 165 | global $wgMemc; |
Index: trunk/extensions/Comments/Comments.i18n.magic.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Magic words for extension. |
| 5 | + */ |
| 6 | + |
| 7 | +$magicWords = array(); |
| 8 | + |
| 9 | +/** English (English) */ |
| 10 | +$magicWords['en'] = array( |
| 11 | + 'NUMBEROFCOMMENTS' => array( 0, 'NUMBEROFCOMMENTS' ), |
| 12 | +); |
Property changes on: trunk/extensions/Comments/Comments.i18n.magic.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/ApprovedRevs/ApprovedRevs.i18n.magic.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Magic words for extension. |
| 5 | + */ |
| 6 | + |
| 7 | +$magicWords = array(); |
| 8 | + |
| 9 | +/** English (English) */ |
| 10 | +$magicWords['en'] = array( |
| 11 | + 'MAG_APPROVEDREVS' => array( 0, '__APPROVEDREVS__' ), |
| 12 | +); |
Property changes on: trunk/extensions/ApprovedRevs/ApprovedRevs.i18n.magic.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/ApprovedRevs/ApprovedRevs.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | * @author Yaron Koren |
11 | 11 | */ |
12 | 12 | |
13 | | -define( 'APPROVED_REVS_VERSION', '0.6' ); |
| 13 | +define( 'APPROVED_REVS_VERSION', '0.7' ); |
14 | 14 | |
15 | 15 | // credits |
16 | 16 | $wgExtensionCredits['other'][] = array( |
— | — | @@ -32,6 +32,7 @@ |
33 | 33 | // internationalization |
34 | 34 | $wgExtensionMessagesFiles['ApprovedRevs'] = $egApprovedRevsIP . 'ApprovedRevs.i18n.php'; |
35 | 35 | $wgExtensionMessagesFiles['ApprovedRevsAlias'] = $egApprovedRevsIP . 'ApprovedRevs.alias.php'; |
| 36 | +$wgExtensionMessagesFiles['ApprovedRevsMagic'] = $egApprovedRevsIP . 'ApprovedRevs.magic.php'; |
36 | 37 | |
37 | 38 | // register all classes |
38 | 39 | $wgAutoloadClasses['ApprovedRevs'] = $egApprovedRevsIP . 'ApprovedRevs_body.php'; |
— | — | @@ -58,7 +59,6 @@ |
59 | 60 | $wgHooks['BeforeParserFetchTemplateAndtitle'][] = 'ApprovedRevsHooks::setTranscludedPageRev'; |
60 | 61 | $wgHooks['ArticleDeleteComplete'][] = 'ApprovedRevsHooks::deleteRevisionApproval'; |
61 | 62 | $wgHooks['MagicWordwgVariableIDs'][] = 'ApprovedRevsHooks::addMagicWordVariableIDs'; |
62 | | -$wgHooks['LanguageGetMagic'][] = 'ApprovedRevsHooks::addMagicWordLanguage'; |
63 | 63 | $wgHooks['ParserBeforeTidy'][] = 'ApprovedRevsHooks::handleMagicWords'; |
64 | 64 | $wgHooks['AdminLinks'][] = 'ApprovedRevsHooks::addToAdminLinks'; |
65 | 65 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'ApprovedRevsHooks::describeDBSchema'; |
Index: trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php |
— | — | @@ -529,17 +529,6 @@ |
530 | 530 | } |
531 | 531 | |
532 | 532 | /** |
533 | | - * Set the actual value of the magic words |
534 | | - */ |
535 | | - static function addMagicWordLanguage( &$magicWords, $langCode ) { |
536 | | - switch( $langCode ) { |
537 | | - default: |
538 | | - $magicWords['MAG_APPROVEDREVS'] = array( 0, '__APPROVEDREVS__' ); |
539 | | - } |
540 | | - return true; |
541 | | - } |
542 | | - |
543 | | - /** |
544 | 533 | * Set values in the page_props table based on the presence of the |
545 | 534 | * 'APPROVEDREVS' magic word in a page |
546 | 535 | */ |