aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-16 13:06:06 +0200
committerArthurHoaro <arthur@hoa.ro>2020-10-16 13:06:06 +0200
commit3adbdc2a83e6b77a4ca62094c5d857524e39d211 (patch)
tree5e6dd92c7e47edeb4f2917f7718ad7ad7113e23f /application/front
parent7f5250421be4832b9679d8140bc4a71c8005dfa3 (diff)
downloadShaarli-3adbdc2a83e6b77a4ca62094c5d857524e39d211.tar.gz
Shaarli-3adbdc2a83e6b77a4ca62094c5d857524e39d211.tar.zst
Shaarli-3adbdc2a83e6b77a4ca62094c5d857524e39d211.zip
Inject ROOT_PATH in plugin instead of regenerating it everywhere
Diffstat (limited to 'application/front')
-rw-r--r--application/front/controller/visitor/ShaarliVisitorController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/front/controller/visitor/ShaarliVisitorController.php b/application/front/controller/visitor/ShaarliVisitorController.php
index 55c075a2..54f9fe03 100644
--- a/application/front/controller/visitor/ShaarliVisitorController.php
+++ b/application/front/controller/visitor/ShaarliVisitorController.php
@@ -106,6 +106,7 @@ abstract class ShaarliVisitorController
106 'target' => $template, 106 'target' => $template,
107 'loggedin' => $this->container->loginManager->isLoggedIn(), 107 'loggedin' => $this->container->loginManager->isLoggedIn(),
108 'basePath' => $this->container->basePath, 108 'basePath' => $this->container->basePath,
109 'rootPath' => preg_replace('#/index\.php$#', '', $this->container->basePath),
109 'bookmarkService' => $this->container->bookmarkService 110 'bookmarkService' => $this->container->bookmarkService
110 ]; 111 ];
111 } 112 }