Index: trunk/extensions/BadImage/BadImage.php |
— | — | @@ -36,6 +36,8 @@ |
37 | 37 | $wgBadImageCache = true; |
38 | 38 | |
39 | 39 | $wgHooks['BadImage'][] = 'efBadImage'; |
| 40 | +$wgHooks['ParserTestTables'][] = 'efBadImageAddTable'; |
| 41 | + |
40 | 42 | $wgLogTypes[] = 'badimage'; |
41 | 43 | $wgLogNames['badimage'] = 'badimages-log-name'; |
42 | 44 | $wgLogHeaders['badimage'] = 'badimages-log-header'; |
— | — | @@ -50,3 +52,9 @@ |
51 | 53 | return true; |
52 | 54 | } |
53 | 55 | } |
| 56 | + |
| 57 | +function efBadImageAddTable( &$tables ) { |
| 58 | + $tables[] = 'bad_images'; |
| 59 | + return true; |
| 60 | +} |
| 61 | + |