Ladsgroup has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/361509 )

Change subject: Remove warning when badge label can not be found
......................................................................

Remove warning when badge label can not be found

I added it but now I think it shouldn't be there because all clients
can't have label for badges they show and it will flood logs

Bug: T73887
Change-Id: Ib27d29507132b1ecc9391ac7b078b39cfd656b1c
---
M client/includes/Hooks/SidebarLinkBadgeDisplay.php
1 file changed, 0 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/09/361509/1

diff --git a/client/includes/Hooks/SidebarLinkBadgeDisplay.php 
b/client/includes/Hooks/SidebarLinkBadgeDisplay.php
index b4094ba..0b596b6 100644
--- a/client/includes/Hooks/SidebarLinkBadgeDisplay.php
+++ b/client/includes/Hooks/SidebarLinkBadgeDisplay.php
@@ -67,9 +67,6 @@
                        $sidebarLink['class'] = $badgeClass;
                }
 
-               if ( !$badgeInfo['label'] ) {
-                       wfLogWarning( "Label for badge class $badgeClass could 
not be found." );
-               }
                $sidebarLink['itemtitle'] = $badgeInfo['label'];
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib27d29507132b1ecc9391ac7b078b39cfd656b1c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Ladsgroup <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to