projects
/
mdref
/
mdref
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
fix composer autoload in bins
[mdref/mdref]
/
bin
/
ref2html
diff --git
a/bin/ref2html
b/bin/ref2html
index 101c9e77690e803f30828f0702f58cbfe23caafa..779a1d0d9048d2bf1df0c9ec120b31086eeef900 100755
(executable)
--- a/
bin/ref2html
+++ b/
bin/ref2html
@@
-8,7
+8,8
@@
use http\Env\Response;
use http\Message\Body;
use function file_put_contents;
-require_once __DIR__."/../vendor/autoload.php";
+require_once $_composer_autoload_path ?? __DIR__."/../vendor/autoload.php";
+
define("ROOT", dirname(__DIR__));
define("REF2HTML", true);