jenkins-bot has submitted this change and it was merged.
Change subject: Bug 52331: Prevent navbars from appearing in diff view.
......................................................................
Bug 52331: Prevent navbars from appearing in diff view.
This checks to make sure the request is not a diff before
adding the navigation bars.
Bug: 52331
Change-Id: I1650b137d181a406284f39eb286674aa87035c38
---
M BookManagerv2.hooks.php
1 file changed, 3 insertions(+), 1 deletion(-)
Approvals:
Mwalker: Looks good to me, approved
jenkins-bot: Verified
diff --git a/BookManagerv2.hooks.php b/BookManagerv2.hooks.php
index c4fcc00..5ea890f 100644
--- a/BookManagerv2.hooks.php
+++ b/BookManagerv2.hooks.php
@@ -420,7 +420,9 @@
$wgBookManagerv2PrevNext, $wgBookManagerv2JsonFrontend,
$wgBookManagerv2NavigationBars;
- if ( !$wgBookManagerv2NavigationBars ) {
+ $request = $out->getRequest();
+
+ if ( !$wgBookManagerv2NavigationBars || !is_null(
$request->getCheck( 'wpDiff' ) ) ) {
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/84293
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1650b137d181a406284f39eb286674aa87035c38
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BookManagerv2
Gerrit-Branch: master
Gerrit-Owner: Mollywhite <[email protected]>
Gerrit-Reviewer: Mwalker <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits