From: Alexandre Emsenhuber Date: Wed, 8 Jun 2011 17:43:25 +0000 (+0000) Subject: * fixed regex to work X-Git-Tag: 1.31.0-rc.0~29616 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=c748cc2e26ad906c59220604ef297fc3acfdc3ed;p=lhc%2Fweb%2Fwiklou.git * fixed regex to work * added missing directories --- diff --git a/maintenance/findhooks.php b/maintenance/findhooks.php index 5c180bebf0..5996fd3a5b 100644 --- a/maintenance/findhooks.php +++ b/maintenance/findhooks.php @@ -56,11 +56,15 @@ class FindHooks extends Maintenance { $pathinc = array( $IP . '/', $IP . '/includes/', + $IP . '/includes/actions/', $IP . '/includes/api/', + $IP . '/includes/cache/', $IP . '/includes/db/', $IP . '/includes/diff/', $IP . '/includes/filerepo/', $IP . '/includes/installer/', + $IP . '/includes/interwiki/', + $IP . '/includes/media/', $IP . '/includes/parser/', $IP . '/includes/resourceloader/', $IP . '/includes/revisiondelete/', @@ -141,7 +145,7 @@ class FindHooks extends Maintenance { private function getHooksFromFile( $file ) { $content = file_get_contents( $file ); $m = array(); - preg_match_all( '/(wfRunHooks|Hooks\:\:run)\(\s*([\'"])(.*?)\1/', $content, $m ); + preg_match_all( '/(?:wfRunHooks|Hooks\:\:run)\(\s*([\'"])(.*?)\1/', $content, $m ); return $m[2]; }