Fix #6692 - fix docs
[PHP_CodeDoc] / CodeDoc / Parser.php
index 098aa9c..e8fc5ee 100644 (file)
@@ -140,7 +140,9 @@ class PHP_CodeDoc_Parser {
              //echo "READ: $filename/$file\n";
             if (is_file($filename."/".$file))  {
                 
-                if (!ereg("\.(inc|php|class)$",$file)) continue;
+                if (!preg_match("/\.(inc|php|class)$/",$file)) {
+                    continue;
+                }
                 $this->files[$filename][] = $file;
                  
             } elseif (is_dir($filename."/".$file)) {
@@ -312,7 +314,7 @@ class PHP_CodeDoc_Parser {
 
                         
                         $this->last_comment_block = $v[1];
-                        PHP_CodeDoc_Parser_Docbook::read($this->last_comment_block,$inclass);
+                        PHP_CodeDoc_Parser_Docbook::read($this, $this->last_comment_block,$inclass);
                         break;
                     default:
                         //echo "{$this->pos}:" .