summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorSimon Rettberg2014-09-15 17:26:26 +0200
committerSimon Rettberg2014-09-15 17:26:26 +0200
commit825e994444fcdb73d62710d0d934e93a227bd30f (patch)
tree4fdf795389ebc9f554b65a89dd8bee1faa1f3c5a /index.php
parent[news-API] tag content as 'content' instead of 'info' (diff)
downloadslx-admin-825e994444fcdb73d62710d0d934e93a227bd30f.tar.gz
slx-admin-825e994444fcdb73d62710d0d934e93a227bd30f.tar.xz
slx-admin-825e994444fcdb73d62710d0d934e93a227bd30f.zip
Added eventlog class, improved db-update machanism.
A warning will be shown in the main menu bar if the database schema needs to be updated.
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.php b/index.php
index 3b1effa6..919c4620 100644
--- a/index.php
+++ b/index.php
@@ -114,16 +114,18 @@ if (AJAX) {
Page::preprocess();
// Generate Main menu
-//$menu = new Menu;
+//$menu = new Menu;// TODO: Merge both templates again - having 99% copy&paste sucks...
if (User::getName() === false) {
Render::addTemplate('main-menu-login', array(
'url' => urlencode($_SERVER['REQUEST_URI']),
- 'langs' => Dictionary::getLanguages(true)
+ 'langs' => Dictionary::getLanguages(true),
+ 'dbupdate' => Database::needSchemaUpdate()
));
} else {
Render::addTemplate('main-menu-logout', array(
'url' => urlencode($_SERVER['REQUEST_URI']),
'langs' => Dictionary::getLanguages(true),
+ 'dbupdate' => Database::needSchemaUpdate(),
'user' => User::getName()
));
}