Index: trunk/phase3/includes/LogPage.php |
— | — | @@ -89,6 +89,7 @@ |
90 | 90 | */ |
91 | 91 | function validTypes() { |
92 | 92 | static $types = array( '', 'block', 'protect', 'rights', 'delete', 'upload', 'move' ); |
| 93 | + wfRunHooks( 'LogPageValidTypes', array( &$types) ); |
93 | 94 | return $types; |
94 | 95 | } |
95 | 96 | |
— | — | @@ -128,6 +129,8 @@ |
129 | 130 | 'upload' => 'uploadlogpage', |
130 | 131 | 'move' => 'movelogpage' |
131 | 132 | ); |
| 133 | + wfRunHooks( 'LogPageLogName', array( &$typeText) ); |
| 134 | + |
132 | 135 | return str_replace( '_', ' ', wfMsg( $typeText[$type] ) ); |
133 | 136 | } |
134 | 137 | |
— | — | @@ -144,6 +147,8 @@ |
145 | 148 | 'upload' => 'uploadlogpagetext', |
146 | 149 | 'move' => 'movelogpagetext' |
147 | 150 | ); |
| 151 | + wfRunHooks( 'LogPageLogHeader', array( &$headerText ) ); |
| 152 | + |
148 | 153 | return wfMsg( $headerText[$type] ); |
149 | 154 | } |
150 | 155 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -591,6 +591,9 @@ |
592 | 592 | * Fix notice on search index update due to non-array |
593 | 593 | * (bug 2885) Fix fatal errors and notices in PHP 5.1.0beta3 |
594 | 594 | * (bug 2931) Fix additional notices on reference use in PHP 4.4.0 |
| 595 | +* (bug 2774) Add three new $wgHooks to LogPage which enable extensions to add |
| 596 | + their own logtypes, see extensions/Renameuser/SpecialRenameuser.php for an |
| 597 | + example of this. |
595 | 598 | |
596 | 599 | |
597 | 600 | === Caveats === |