Thcipriani has uploaded a new change for review. ( 
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(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaMessages 
refs/changes/83/404583/1

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: newchange
Gerrit-Change-Id: Ie37420351135d3416974f844ca00c20c81065906
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaMessages
Gerrit-Branch: wmf/1.31.0-wmf.17
Gerrit-Owner: Thcipriani <tcipri...@wikimedia.org>
Gerrit-Reviewer: Sbisson <sbis...@wikimedia.org>

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

Reply via email to