Index: trunk/extensions/CodeReview/CodeReview.php |
— | — | @@ -176,7 +176,6 @@ |
177 | 177 | $wgResourceModules['ext.codereview.tooltips'] = array( |
178 | 178 | 'scripts' => 'ext.codereview.tooltips.js', |
179 | 179 | 'dependencies' => 'jquery.tipsy', |
180 | | - 'messages' => array_merge( CodeRevision::getPossibleStateMessageKeys(), array( 'code-tooltip-withsummary', 'code-tooltip-withoutsummary' ) ), |
181 | 180 | ) + $commonModuleInfo; |
182 | 181 | |
183 | 182 | // Revision 'scapmap': |
— | — | @@ -370,3 +369,14 @@ |
371 | 370 | } |
372 | 371 | return true; |
373 | 372 | } |
| 373 | + |
| 374 | +# Add state messages to RL |
| 375 | +$wgExtensionFunctions[] = 'efCodeReviewAddTooltipMessages'; |
| 376 | + |
| 377 | +function efCodeReviewAddTooltipMessages() { |
| 378 | + global $wgResourceModules; |
| 379 | + |
| 380 | + $wgResourceModules['ext.codereview.tooltips']['messages'] = array_merge( |
| 381 | + CodeRevision::getPossibleStateMessageKeys(), |
| 382 | + array( 'code-tooltip-withsummary', 'code-tooltip-withoutsummary' ) ); |
| 383 | +} |