jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/404583 )
Change subject: Update access to ORES isModelEnabled()
......................................................................
Update access to ORES isModelEnabled()
Follow-up Id73153c0f99f8961311a1bba167387bce2175d1a
The isModelEnabled() function was moved from
ORES\Hooks to ORES\Hooks\Helpers.
This breaks account creation locally.
Change-Id: Ie37420351135d3416974f844ca00c20c81065906
(cherry picked from commit 4ed241c74a11244c4eab2a3bb88654f9b57f55c5)
---
M WikimediaMessages.hooks.php
1 file changed, 3 insertions(+), 2 deletions(-)
Approvals:
Thcipriani: Looks good to me, approved
jenkins-bot: Verified
diff --git a/WikimediaMessages.hooks.php b/WikimediaMessages.hooks.php
index d9b4cec..3dda811 100644
--- a/WikimediaMessages.hooks.php
+++ b/WikimediaMessages.hooks.php
@@ -1269,10 +1269,11 @@
* @return bool
*/
private static function isOresAvailable() {
- if ( !class_exists( 'ORES\\Hooks' ) ) {
+ if ( !class_exists( 'ORES\\Hooks\\Helpers' ) ) {
return false;
}
- return ORES\Hooks::isModelEnabled( 'damaging' ) ||
ORES\Hooks::isModelEnabled( 'goodfaith' );
+ return ORES\Hooks\Helpers::isModelEnabled( 'damaging' ) ||
+ ORES\Hooks\Helpers::isModelEnabled( 'goodfaith' );
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/404583
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie37420351135d3416974f844ca00c20c81065906
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaMessages
Gerrit-Branch: wmf/1.31.0-wmf.17
Gerrit-Owner: Thcipriani <[email protected]>
Gerrit-Reviewer: Sbisson <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Thcipriani <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits