r111640 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111639‎ | r111640 | r111641 >
Date:15:00, 16 February 2012
Author:qchris
Status:ok
Tags:
Comment:
Made 'register' functions static (required by BackupDumper)
Modified paths:
  • /trunk/extensions/ActiveAbstract/AbstractFilter.php (modified) (history)
  • /trunk/extensions/ActiveAbstract/GoogleCoopFilter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ActiveAbstract/AbstractFilter.php
@@ -23,7 +23,7 @@
2424 * Register the filter function with the dump manager
2525 * @param BackupDumper $dumper
2626 */
27 - function register( &$dumper ) {
 27+ static function register( &$dumper ) {
2828 $dumper->registerFilter( 'abstract', 'AbstractFilter' );
2929 $dumper->registerFilter( 'noredirect', 'NoredirectFilter' );
3030 }
Index: trunk/extensions/ActiveAbstract/GoogleCoopFilter.php
@@ -43,7 +43,7 @@
4444 * @param BackupDumper $dumper
4545 * @static
4646 */
47 - function register( &$dumper ) {
 47+ static function register( &$dumper ) {
4848 $dumper->registerFilter( 'googlecoop', 'GoogleCoopFilter' );
4949 parent::register( $dumper );
5050 }

Status & tagging log