diff --git a/src/Config/ConfigInfo.php b/src/Config/ConfigInfo.php index 79cb0c57..b162e00c 100644 --- a/src/Config/ConfigInfo.php +++ b/src/Config/ConfigInfo.php @@ -788,6 +788,10 @@ public function __construct($dirroot, $wwwroot, $dataroot=false) { $this->lumen_storage = sprintf("%s/storage/", $dirroot); } + function getExtension($key, $default=null) { + return $this->extensions[$key] ?? $default; + } + function getCurrentFile($file) { $root = $this->dirroot; $path = realpath($file);