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')
33
33
{
34
34
$ this ->location = pathinfo ($ filename , PATHINFO_DIRNAME ) . '/ ' ;
35
35
36
+ set_include_path (get_include_path ().': ' .$ this ->location );
37
+
36
38
$ this ->full_apib = $ this ->get_apib ($ filename );
37
39
}
38
40
@@ -49,7 +51,7 @@ function get_apib($filename)
49
51
$ this ->file_check ($ filename );
50
52
$ file = file_get_contents ($ filename );
51
53
$ matches = [];
52
- preg_match_all ('<!-- include\(([a-z_ .\/]*?).apib\) --> ' , $ file , $ matches );
54
+ preg_match_all ('<!-- include\(([a-z0-9_ .\/]*?).apib\) --> ' , $ file , $ matches );
53
55
foreach ($ matches [1 ] as $ value ) {
54
56
$ file = str_replace ('<!-- include( ' . $ value . '.apib) --> ' ,
55
57
$ this ->get_apib ($ this ->location . $ value . '.apib ' ), $ file );
You can’t perform that action at this time.
0 commit comments