From: Alexandre Emsenhuber Date: Fri, 12 Oct 2012 06:32:13 +0000 (+0200) Subject: Updates findHooks.php for ContentHandler changes. X-Git-Tag: 1.31.0-rc.0~22056 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=21484ddacfd980e84accb44128a2c036cdda3e8d;p=lhc%2Fweb%2Fwiklou.git Updates findHooks.php for ContentHandler changes. - Added includes/content/ to the list of directories - Added ContentHandler::runLegacyHooks() to the list of functions that run hooks Change-Id: I1f21af71443468232b4bc119454f1c93ad343137 --- diff --git a/maintenance/findHooks.php b/maintenance/findHooks.php index e273c545f4..9ad4df4bf6 100644 --- a/maintenance/findHooks.php +++ b/maintenance/findHooks.php @@ -64,6 +64,7 @@ class FindHooks extends Maintenance { $IP . '/includes/actions/', $IP . '/includes/api/', $IP . '/includes/cache/', + $IP . '/includes/content/', $IP . '/includes/context/', $IP . '/includes/db/', $IP . '/includes/diff/', @@ -170,7 +171,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|ContentHandler\:\:runLegacyHooks)\(\s*([\'"])(.*?)\1/', $content, $m ); return $m[2]; }