Index: trunk/phase3/maintenance/findhooks.php |
— | — | @@ -24,6 +24,9 @@ |
25 | 25 | |
26 | 26 | $doc = $IP . '/docs/hooks.txt'; |
27 | 27 | $pathinc = $IP . '/includes/'; |
| 28 | +$pathfile = $IP . '/includes/filerepo/LocalFile.php'; |
| 29 | +$pathlang = $IP . '/languages/Language.php'; |
| 30 | +$pathskin = $IP . '/skins/MonoBook.php'; |
28 | 31 | |
29 | 32 | |
30 | 33 | # FUNCTIONS |
— | — | @@ -115,9 +118,20 @@ |
116 | 119 | # MAIN |
117 | 120 | |
118 | 121 | $documented = getHooksFromDoc($doc); |
119 | | -$potential = getHooksFromPath($pathinc); |
120 | | -$bad = getBadHooksFromPath($pathinc); |
121 | 122 | |
| 123 | +$potenial_inc = getHooksFromPath($pathinc); |
| 124 | +$potential_file = getHooksFromFile($pathfile); |
| 125 | +$potential_lang = getHooksFromFile($pathlang); |
| 126 | +$potential_skin = getHooksFromFile($pathskin); |
| 127 | + |
| 128 | +$bad_inc = getBadHooksFromPath($pathinc); |
| 129 | +$bad_file = getBadHooksFromFile($pathfile); |
| 130 | +$bad_lang = getBadHooksFromFile($pathlang); |
| 131 | +$bad_skin = getBadHooksFromFile($pathskin); |
| 132 | + |
| 133 | +$potential = array_merge($potenial_inc, $potential_file, $potential_lang, $potential_skin); |
| 134 | +$bad = array_merge($bad_inc, $bad_file, $bad_lang, $bad_skin); |
| 135 | + |
122 | 136 | $todo = array_diff($potential, $documented); |
123 | 137 | $deprecated = array_diff($documented, $potential); |
124 | 138 | |