Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1487,6 +1487,7 @@ |
1488 | 1488 | Return false and put the merged text into $text to override the default behavior. |
1489 | 1489 | |
1490 | 1490 | 'PreferencesGetLegend': Override the text used for the <legend> of a preferences section |
| 1491 | +$form: the PreferencesForm object. This is a ContextSource as well |
1491 | 1492 | $key: the section name |
1492 | 1493 | &$legend: the legend text. Defaults to wfMsg( "prefs-$key" ) but may be overridden |
1493 | 1494 | |
Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -1572,7 +1572,7 @@ |
1573 | 1573 | */ |
1574 | 1574 | function getLegend( $key ) { |
1575 | 1575 | $legend = parent::getLegend( $key ); |
1576 | | - wfRunHooks( 'PreferencesGetLegend', array( $key, &$legend ) ); |
| 1576 | + wfRunHooks( 'PreferencesGetLegend', array( $this, $key, &$legend ) ); |
1577 | 1577 | return $legend; |
1578 | 1578 | } |
1579 | 1579 | } |