path = combine_path("/",f);
That should be
path = combine_path(f);
You shouldn't assume that the root is called "/". But since f is absolute, combine_path with one argument will do the right thing.
array(string) tmp=EXPLODE_PATH(current_file); tmp[-1]=f; path=combine_path_with_cwd(tmp*"/");
Ack! That should be
path = combine_path_with_cwd(dirname(current_file), f);
I think. Please avoid EXPLODE_PATH.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-01-12 16:49: Subject: Re: #include
The error is in the handle_include function. I think this is how it should look
if(local_include) { if(IS_ABSOLUTE_PATH(f)) path = combine_path("/",f); else { array(string) tmp=EXPLODE_PATH(current_file); tmp[-1]=f; path=combine_path_with_cwd(tmp*"/"); } }
/ Martin Nilsson (saturator)