aboutsummaryrefslogtreecommitdiff
path: root/app/class
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-17 16:28:28 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-17 16:28:28 +0100
commit08edd92a2135d486603687b181979854b60a3bcc (patch)
tree8bd976d69b6f98e3aa88bef703e3bedfefe40cde /app/class
parent1a7a60ea3efde53ac2c3b07ca914483cfc25a827 (diff)
downloadwcms-08edd92a2135d486603687b181979854b60a3bcc.tar.gz
wcms-08edd92a2135d486603687b181979854b60a3bcc.zip
license and version info
Diffstat (limited to 'app/class')
-rw-r--r--app/class/config.php2
-rw-r--r--app/class/controllerinfo.php4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/class/config.php b/app/class/config.php
index b778d83..36a5116 100644
--- a/app/class/config.php
+++ b/app/class/config.php
@@ -20,6 +20,8 @@ abstract class Config
protected static $defaultfavicon = '';
protected static $showeditmenu = true;
protected static $editsymbol = 'pen';
+ protected static $version = '';
+
diff --git a/app/class/controllerinfo.php b/app/class/controllerinfo.php
index 8f8b494..306c818 100644
--- a/app/class/controllerinfo.php
+++ b/app/class/controllerinfo.php
@@ -12,10 +12,12 @@ class Controllerinfo extends Controller
public function desktop()
{
if($this->user->iseditor()) {
- $this->showtemplate('info', []);
+ $this->showtemplate('info', ['version' => getversion()]);
}
}
+
+