findHooks.php: Only look at PHP files, not silly things
authorChad Horohoe <chadh@wikimedia.org>
Fri, 10 Jun 2016 20:42:13 +0000 (13:42 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Fri, 10 Jun 2016 20:43:58 +0000 (13:43 -0700)
Change-Id: I29280dfe629126c71adfb65ac1a59394bc459dc4

maintenance/findHooks.php

index a8bed54..89e0311 100644 (file)
@@ -315,7 +315,7 @@ class FindHooks extends Maintenance {
                foreach ( $iterator as $info ) {
                        // Ignore directories, ignore json (installer and api i18n),
                        // ignore extension-less files like HISTORY
-                       if ( $info->isFile() && $info->getExtension() !== 'json' && $info->getExtension()
+                       if ( $info->isFile() && $info->getExtension() === 'php'
                                // Skip this file as it contains text that looks like a bad wfRunHooks() call
                                && $info->getRealPath() !== __FILE__
                        ) {