Browse Source

[fix] watchdog applet caused epesi error when applet title and category was both set

experimental
Paweł Bukowski 3 years ago
parent
commit
3e75b909ed
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      modules/Utils/Watchdog/Watchdog_0.php

+ 4
- 3
modules/Utils/Watchdog/Watchdog_0.php View File

@@ -48,9 +48,7 @@ class Utils_Watchdog extends Module {
array('name'=>__('Cat.'),'width'=>5),
array('name'=>__('Title'),'width'=>15)
);
if($conf['title']) {
$opts['title'] = __('Watchdog - %s',array($conf['title']));
} elseif (count($categories)==1) {
if (count($categories)==1) {
$title = call_user_func($methods[$categories[0]]);
$opts['title'] = __('Watchdog - %s', array($title['category']));
$header = array(array('name'=>__('Title')));
@@ -59,6 +57,9 @@ class Utils_Watchdog extends Module {
} else {
$opts['title'] = __('Watchdog - Selection');
}
if($conf['title']) {
$opts['title'] = __('Watchdog - %s',array($conf['title']));
}
$records = Utils_WatchdogCommon::get_records_with_new_notifications();
$gb = $this->init_module(Utils_GenericBrowser::module_name(),'subscriptions','subscriptions');
$gb->set_table_columns($header);


Loading…
Cancel
Save