For the maintenance/ directory files:
[lhc/web/wiklou.git] / maintenance / findhooks.php
index 4f446f2..97e6c57 100644 (file)
@@ -33,6 +33,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 +45,7 @@ function getHooksFromDoc() {
  */
 function getHooksFromFile( $file ) {
        $content = file_get_contents( $file );
+       $m = array();
        preg_match_all( "/wfRunHooks\(\s*\'(.*?)\'/", $content, $m);
        return $m[1];
 }