From 21484ddacfd980e84accb44128a2c036cdda3e8d Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 12 Oct 2012 08:32:13 +0200 Subject: [PATCH] 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 --- maintenance/findHooks.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; } -- 2.20.1