Follow-up I49b7d8a - Add api module for common metadata
[lhc/web/wiklou.git] / maintenance / findHooks.php
index 74eb971..ee8c48f 100644 (file)
@@ -143,7 +143,7 @@ class FindHooks extends Maintenance {
        private function getHooksFromLocalDoc( $doc ) {
                        $m = array();
                        $content = file_get_contents( $doc );
-                       preg_match_all( "/\n'(.*?)'/", $content, $m );
+                       preg_match_all( "/\n'(.*?)':/", $content, $m );
                        return array_unique( $m[1] );
        }