X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfindHooks.php;h=ebb1f26c17f8aab04375dc2193fedd0edb04d34a;hb=899f475d0dad8ea0a24f706fc8ac07e3097d6191;hp=6a21a61a48e2a8462c0fed9ea96a47875dfc3917;hpb=fc5dced1ce8151b0354e0efda28a7542713f9cbe;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/findHooks.php b/maintenance/findHooks.php index 6a21a61a48..ebb1f26c17 100644 --- a/maintenance/findHooks.php +++ b/maintenance/findHooks.php @@ -217,7 +217,7 @@ class FindHooks extends Maintenance { $retval = []; while ( true ) { $json = Http::get( - wfAppendQuery( 'http://www.mediawiki.org/w/api.php', $params ), + wfAppendQuery( 'https://www.mediawiki.org/w/api.php', $params ), [], __METHOD__ ); @@ -245,7 +245,7 @@ class FindHooks extends Maintenance { $m = []; preg_match_all( // All functions which runs hooks - '/(?:wfRunHooks|Hooks\:\:run)\s*\(\s*' . + '/(?:wfRunHooks|Hooks\:\:run|Hooks\:\:runWithoutAbort)\s*\(\s*' . // First argument is the hook name as string '([\'"])(.*?)\1' . // Comma for second argument @@ -349,5 +349,5 @@ class FindHooks extends Maintenance { } } -$maintClass = 'FindHooks'; +$maintClass = FindHooks::class; require_once RUN_MAINTENANCE_IF_MAIN;