From: Huji Date: Mon, 11 Feb 2008 08:57:19 +0000 (+0000) Subject: Allows findhooks to find these hooks: X-Git-Tag: 1.31.0-rc.0~49521 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=e7c5c635e60054cf1c38b58dbe546f6fd7c41723;p=lhc%2Fweb%2Fwiklou.git Allows findhooks to find these hooks: * FileUpload * LanguageGetMagic * LanguageGetSpecialPageAliases * MonoBookTemplateToolboxEnd Regardless, these hooks are still not found (although they are in use by extensions): * LoadExtensionSchemaUpdates * ParserTestParser * ParserTestTables --- diff --git a/maintenance/findhooks.php b/maintenance/findhooks.php index 0240b63155..e116b834a4 100644 --- a/maintenance/findhooks.php +++ b/maintenance/findhooks.php @@ -24,6 +24,9 @@ include('commandLine.inc'); $doc = $IP . '/docs/hooks.txt'; $pathinc = $IP . '/includes/'; +$pathfile = $IP . '/includes/filerepo/LocalFile.php'; +$pathlang = $IP . '/languages/Language.php'; +$pathskin = $IP . '/skins/MonoBook.php'; # FUNCTIONS @@ -115,8 +118,19 @@ function printArray( $msg, $arr, $sort = true ) { # MAIN $documented = getHooksFromDoc($doc); -$potential = getHooksFromPath($pathinc); -$bad = getBadHooksFromPath($pathinc); + +$potenial_inc = getHooksFromPath($pathinc); +$potential_file = getHooksFromFile($pathfile); +$potential_lang = getHooksFromFile($pathlang); +$potential_skin = getHooksFromFile($pathskin); + +$bad_inc = getBadHooksFromPath($pathinc); +$bad_file = getBadHooksFromFile($pathfile); +$bad_lang = getBadHooksFromFile($pathlang); +$bad_skin = getBadHooksFromFile($pathskin); + +$potential = array_merge($potenial_inc, $potential_file, $potential_lang, $potential_skin); +$bad = array_merge($bad_inc, $bad_file, $bad_lang, $bad_skin); $todo = array_diff($potential, $documented); $deprecated = array_diff($documented, $potential);