From b8903396199c3437cf980d93c94159a00899a10d Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 8 Nov 2020 18:04:12 +0100 Subject: Make SITE_BASE_PATH a method of Env This allows us to get rid of utils.php --- ratatoeskr/sys/plugin_api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ratatoeskr/sys/plugin_api.php') diff --git a/ratatoeskr/sys/plugin_api.php b/ratatoeskr/sys/plugin_api.php index b85ce57..082b605 100644 --- a/ratatoeskr/sys/plugin_api.php +++ b/ratatoeskr/sys/plugin_api.php @@ -96,7 +96,7 @@ abstract class RatatoeskrPlugin */ final protected function get_custompriv_dir() { - return SITE_BASE_PATH . "/ratatoeskr/plugin_extradata/private/" . $this->id; + return $this->env->siteBasePath() . "/ratatoeskr/plugin_extradata/private/" . $this->id; } /** @@ -105,7 +105,7 @@ abstract class RatatoeskrPlugin */ final protected function get_custompub_dir() { - return SITE_BASE_PATH . "/ratatoeskr/plugin_extradata/public/" . $this->id; + return $this->env->siteBasePath() . "/ratatoeskr/plugin_extradata/public/" . $this->id; } /** -- cgit v1.2.3-70-g09d2