jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/349971 )

Change subject: Ensure wgOresFiltersThresholds relevant keys exist
......................................................................


Ensure wgOresFiltersThresholds relevant keys exist

Change-Id: I152f825fbdbaf85c394427a3d096456628266082
---
M wmf-config/CommonSettings.php
1 file changed, 6 insertions(+), 2 deletions(-)

Approvals:
  Mattflaschen: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index e1407d4..2034679 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -3335,8 +3335,12 @@
        }
 
        // Backwards compatibility for upcoming config format change
-       $wgOresFiltersThresholds['goodfaith']['likelygood'] = 
$wgOresFiltersThresholds['goodfaith']['good'];
-       $wgOresFiltersThresholds['goodfaith']['likelybad'] = 
$wgOresFiltersThresholds['goodfaith']['bad'];
+       if (isset($wgOresFiltersThresholds['goodfaith']['good'])) {
+               $wgOresFiltersThresholds['goodfaith']['likelygood'] = 
$wgOresFiltersThresholds['goodfaith']['good'];
+       }
+       if (isset($wgOresFiltersThresholds['goodfaith']['bad'])) {
+               $wgOresFiltersThresholds['goodfaith']['likelybad'] = 
$wgOresFiltersThresholds['goodfaith']['bad'];
+       }
 }
 
 ### End (roughly) of general extensions ########################

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I152f825fbdbaf85c394427a3d096456628266082
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Dereckson <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to