aboutsummaryrefslogtreecommitdiff
path: root/app/class/Config.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-03-26 17:20:31 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-03-26 17:20:31 +0100
commit01795f56b61ab4e6becd959b7a41aad1276cdfca (patch)
tree0be85f2a811cc0fb7b44985ca3bc09015f706ebd /app/class/Config.php
parentadb3d38893acb75b838fc6ccce5edb4321d08bf9 (diff)
parentd17713051ca2fef29de8025fe876d417838cea7f (diff)
downloadwcms-01795f56b61ab4e6becd959b7a41aad1276cdfca.tar.gz
wcms-01795f56b61ab4e6becd959b7a41aad1276cdfca.zip
Merge branch 'implement-cytoscape.js'
Diffstat (limited to 'app/class/Config.php')
-rw-r--r--app/class/Config.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/app/class/Config.php b/app/class/Config.php
index fa9082f..2cfdcd3 100644
--- a/app/class/Config.php
+++ b/app/class/Config.php
@@ -3,6 +3,8 @@
namespace Wcms;
+use Http\Client\Common\Plugin\RetryPlugin;
+
abstract class Config
{
protected static $pagetable = 'mystore';
@@ -129,9 +131,16 @@ abstract class Config
return self::$fontsize;
}
- public static function basepath()
+ /**
+ * @param bool $trailingslash If not empty basepath, add a trailing slash after the basepath
+ */
+ public static function basepath(bool $trailingslash = false) : string
{
- return self::$basepath;
+ if($trailingslash && !empty(self::$basepath)) {
+ return self::$basepath . '/';
+ } else {
+ return self::$basepath;
+ }
}
public static function route404()