Convert HTTP links to MediaWiki.org to HTTPS
[lhc/web/wiklou.git] / maintenance / findHooks.php
index 6a21a61..ebb1f26 100644 (file)
@@ -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;