Skip to content

Commit

Permalink
Include repositories from extra-paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tvannini committed Jan 16, 2022
1 parent 3292872 commit 2803c4f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/jxapp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2205,9 +2205,17 @@ class o2_app {
$file2inc = $this->dir_progs->element($repository);
}
if (!include_once($file2inc)) {
if ($this->prgs_path_inc) {
foreach ($this->prgs_path_inc as $path) {
if (@include_once($path.$repository)) {
return true;
}
}
}
throw new o2_exception("Cannot find file <i>".$repository.
"</i> requested as repository.",
o2error_MISSINGFILE);
"</i> requested as repository.",
o2error_MISSINGFILE);
return false;
}
}
return true;
Expand Down

0 comments on commit 2803c4f

Please sign in to comment.