File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ public function __construct($filename = 'index.apib')
3333 {
3434 $ this ->location = pathinfo ($ filename , PATHINFO_DIRNAME ) . '/ ' ;
3535
36+ set_include_path (get_include_path ().': ' .$ this ->location );
37+
3638 $ this ->full_apib = $ this ->get_apib ($ filename );
3739 }
3840
@@ -49,7 +51,7 @@ function get_apib($filename)
4951 $ this ->file_check ($ filename );
5052 $ file = file_get_contents ($ filename );
5153 $ matches = [];
52- preg_match_all ('<!-- include\(([a-z_ .\/]*?).apib\) --> ' , $ file , $ matches );
54+ preg_match_all ('<!-- include\(([a-z0-9_ .\/]*?).apib\) --> ' , $ file , $ matches );
5355 foreach ($ matches [1 ] as $ value ) {
5456 $ file = str_replace ('<!-- include( ' . $ value . '.apib) --> ' ,
5557 $ this ->get_apib ($ this ->location . $ value . '.apib ' ), $ file );
You can’t perform that action at this time.
0 commit comments