2013-01-16 Sergio Martin <sergio.martin@artica.es>

* operation/events/events.php: Hide the history events tab
	when history events are disabled



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7484 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2013-01-16 15:13:07 +00:00
parent 6ce77b8977
commit 59f5303788
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-01-16 Sergio Martin <sergio.martin@artica.es>
* operation/events/events.php: Hide the history events tab
when history events are disabled
2013-01-16 Sergio Martin <sergio.martin@artica.es>
* include/ajax/events.php

View File

@ -270,6 +270,11 @@ if ($config["pure"] == 0 || defined ('METACONSOLE')) {
'csv' => $csv,
'sound_event' => $sound_event) ;
}
// If the history event is not ebabled, dont show the history tab
if(!isset($config['metaconsole_events_history']) || $config['metaconsole_events_history'] != 1) {
unset($onheader['history']);
}
switch ($section) {
case 'sound_event':