Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -949,6 +949,11 @@ |
950 | 950 | $wgDebugLogGroups = array(); |
951 | 951 | |
952 | 952 | /** |
| 953 | + * Show the contents of $wgHooks in Special:Version |
| 954 | + */ |
| 955 | +$wgSpecialVersionShowHooks = false; |
| 956 | + |
| 957 | +/** |
953 | 958 | * Whether to show "we're sorry, but there has been a database error" pages. |
954 | 959 | * Displaying errors aids in debugging, but may display information useful |
955 | 960 | * to an attacker. |
Index: trunk/phase3/includes/SpecialVersion.php |
— | — | @@ -28,16 +28,18 @@ |
29 | 29 | * main() |
30 | 30 | */ |
31 | 31 | function execute() { |
32 | | - global $wgOut, $wgMessageCache; |
| 32 | + global $wgOut, $wgMessageCache, $wgSpecialVersionShowHooks; |
33 | 33 | $wgMessageCache->loadAllMessages(); |
34 | 34 | |
35 | 35 | $wgOut->addHTML( '<div dir="ltr">' ); |
36 | | - $wgOut->addWikiText( |
| 36 | + $text = |
37 | 37 | $this->MediaWikiCredits() . |
38 | 38 | $this->softwareInformation() . |
39 | | - $this->extensionCredits() . |
40 | | - $this->wgHooks() |
41 | | - ); |
| 39 | + $this->extensionCredits(); |
| 40 | + if ( $wgSpecialVersionShowHooks ) { |
| 41 | + $text .= $this->wgHooks(); |
| 42 | + } |
| 43 | + $wgOut->addWikiText( $text ); |
42 | 44 | $wgOut->addHTML( $this->IPInfo() ); |
43 | 45 | $wgOut->addHTML( '</div>' ); |
44 | 46 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -47,6 +47,8 @@ |
48 | 48 | image page already exists |
49 | 49 | * $wgMaximumMovedPages restricts the number of pages that can be moved at once |
50 | 50 | (default 100) with the new subpage-move functionality of Special:Movepage |
| 51 | +* Hooks display in Special:Version is now disabled by default, use |
| 52 | + $wgSpecialVersionShowHooks = true; to enable it. |
51 | 53 | |
52 | 54 | === New features in 1.13 === |
53 | 55 | |