minor visual improvements; add back edit link
[mdref/mdref] / public / index.php
index 23a1be2cf1a8595337669918a3438a80f4ef27fe..6c477eeee40c3f17b1b0e15ee3f0a4f678a494b3 100644 (file)
@@ -3,7 +3,7 @@
 define("ROOT", dirname(__DIR__));
 define("REFS", getenv("REFPATH") ?: implode(PATH_SEPARATOR, glob(ROOT."/refs/*")));
 
-ini_set("open_basedir", ROOT.":".REFS);
+#ini_set("open_basedir", ROOT.":".REFS);
 
 $loader = require ROOT . "/vendor/autoload.php";
 /* @var $loader \Composer\Autoload\ClassLoader */
@@ -20,7 +20,7 @@ new ExceptionHandler;
 
 $ctl = new Controller;
 $ctl->setDependency("baseUrl", new Url)
-       ->attach(new Action)
+       ->attach(new Action(["refpath" => REFS]))
        ->attach(new Layout)
        ->notify()
        ->getResponse()