diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-12 11:11:58 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-12 11:11:58 +0100 |
commit | 89b05effb2eb45382762fcfcfae2373b7754caa7 (patch) | |
tree | de7a5298f1ef7a095c4b99e684c80b9152c686b1 /app/class/config.php | |
parent | a64af357ff41a61f5248e2052274315b390e979c (diff) | |
download | wcms-89b05effb2eb45382762fcfcfae2373b7754caa7.tar.gz wcms-89b05effb2eb45382762fcfcfae2373b7754caa7.zip |
url-cleaning-redirect-correct-id
Diffstat (limited to 'app/class/config.php')
-rw-r--r-- | app/class/config.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/class/config.php b/app/class/config.php index 83982de..39c741a 100644 --- a/app/class/config.php +++ b/app/class/config.php @@ -13,6 +13,8 @@ abstract class Config protected static $color4; protected static $fontsize = 15; protected static $basepath = ''; + protected static $route404 = ''; + // _______________________________________ F U N _______________________________________ @@ -114,6 +116,11 @@ abstract class Config return self::$basepath; } + public static function route404() + { + return self::$route404; + } + // __________________________________________ S E T ______________________________________ @@ -170,6 +177,11 @@ abstract class Config self::$basepath = strip_tags($basepath); } + public static function setroute404(string $id) + { + self::$route404 = idclean($id); + } + |