diff options
Diffstat (limited to 'maintenance/findhooks.php')
-rw-r--r-- | maintenance/findhooks.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/maintenance/findhooks.php b/maintenance/findhooks.php index 4f446f2b..0308ad13 100644 --- a/maintenance/findhooks.php +++ b/maintenance/findhooks.php @@ -7,8 +7,7 @@ * - hooks names in hooks.txt are at the beginning of a line and single quoted. * - hooks names in code are the first parameter of wfRunHooks. * - * @package MediaWiki - * @subpackage Maintenance + * @addtogroup Maintenance * * @author Ashar Voultoiz <hashar@altern.org> * @copyright Copyright © Ashar voultoiz @@ -33,6 +32,7 @@ $pathinc = $IP . '/includes/'; function getHooksFromDoc() { global $doc; $content = file_get_contents( $doc ); + $m = array(); preg_match_all( "/\n'(.*?)'/", $content, $m); return $m[1]; } @@ -44,6 +44,7 @@ function getHooksFromDoc() { */ function getHooksFromFile( $file ) { $content = file_get_contents( $file ); + $m = array(); preg_match_all( "/wfRunHooks\(\s*\'(.*?)\'/", $content, $m); return $m[1]; } |