Nikerabbit has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/315646

Change subject: Do not load ext.cleanchanges.uls unnecessarily
......................................................................

Do not load ext.cleanchanges.uls unnecessarily

Bug: T146476
Change-Id: Idb3ae1d29b8267891e9d00b7cb6f8603b9b5ef76
---
M CleanChanges_body.php
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CleanChanges 
refs/changes/46/315646/1

diff --git a/CleanChanges_body.php b/CleanChanges_body.php
index 053dfea..8462b48 100644
--- a/CleanChanges_body.php
+++ b/CleanChanges_body.php
@@ -8,9 +8,12 @@
         * Determines which version of changes list to provide, or none.
         */
        public static function hook( User $user, Skin $skin, &$list ) {
+               global $wgCCTrailerFilter;
+
                $list = null;
 
-               if ( defined( 'ULS_VERSION' ) ) {
+
+               if ( $wgCCTrailerFilter && defined( 'ULS_VERSION' ) ) {
                        $skin->getOutput()->addModules( 'ext.cleanchanges.uls' 
);
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/315646
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idb3ae1d29b8267891e9d00b7cb6f8603b9b5ef76
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CleanChanges
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to