image page already exists
* $wgMaximumMovedPages restricts the number of pages that can be moved at once
(default 100) with the new subpage-move functionality of Special:Movepage
+* Hooks display in Special:Version is now disabled by default, use
+ $wgSpecialVersionShowHooks = true; to enable it.
=== New features in 1.13 ===
*/
$wgDebugLogGroups = array();
+/**
+ * Show the contents of $wgHooks in Special:Version
+ */
+$wgSpecialVersionShowHooks = false;
+
/**
* Whether to show "we're sorry, but there has been a database error" pages.
* Displaying errors aids in debugging, but may display information useful
* main()
*/
function execute() {
- global $wgOut, $wgMessageCache;
+ global $wgOut, $wgMessageCache, $wgSpecialVersionShowHooks;
$wgMessageCache->loadAllMessages();
$wgOut->addHTML( '<div dir="ltr">' );
- $wgOut->addWikiText(
+ $text =
$this->MediaWikiCredits() .
$this->softwareInformation() .
- $this->extensionCredits() .
- $this->wgHooks()
- );
+ $this->extensionCredits();
+ if ( $wgSpecialVersionShowHooks ) {
+ $text .= $this->wgHooks();
+ }
+ $wgOut->addWikiText( $text );
$wgOut->addHTML( $this->IPInfo() );
$wgOut->addHTML( '</div>' );
}