Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1416,6 +1416,7 @@ |
1417 | 1417 | 'SkinAfterContent': Allows extensions to add text after the page content and |
1418 | 1418 | article metadata. |
1419 | 1419 | &$data: (string) Text to be printed out directly (without parsing) |
| 1420 | +$skin: Skin object |
1420 | 1421 | This hook should work in all skins. Just set the &$data variable to the text |
1421 | 1422 | you're going to add. |
1422 | 1423 | |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -911,7 +911,7 @@ |
912 | 912 | protected function afterContentHook() { |
913 | 913 | $data = ''; |
914 | 914 | |
915 | | - if( wfRunHooks( 'SkinAfterContent', array( &$data ) ) ) { |
| 915 | + if( wfRunHooks( 'SkinAfterContent', array( &$data, $this ) ) ) { |
916 | 916 | // adding just some spaces shouldn't toggle the output |
917 | 917 | // of the whole <div/>, so we use trim() here |
918 | 918 | if( trim( $data ) != '' ) { |