Changeset 581 for trunk/Modules/Log


Ignore:
Timestamp:
Sep 12, 2013, 9:14:38 PM (11 years ago)
Author:
chronos
Message:
  • Modified: RSS channel management is now part of News module. In this module other modules can register their RSS channel which will be availble on all pages for subscription.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Log/Log.php

    r578 r581  
    1313    $this->License = 'GNU/GPL';
    1414    $this->Description = 'Log various application events';
    15     $this->Dependencies = array('Error');
     15    $this->Dependencies = array('Error', 'News');
    1616   
    1717    $this->Excludes = array();
     
    2222        $this->System->RegisterPage('log.php', 'PageLog');
    2323        $this->System->ModuleManager->Modules['Error']->OnError[] = array($this, 'DoAddItem');
     24        $this->System->ModuleManager->Modules['News']->RegisterRSS(array('Title' => 'Záznamy',
     25          'Channel' => 'log', 'Callback' => array('PageLog', 'ShowRSS'), 'Permission' => LICENCE_ADMIN));
    2426  } 
    2527 
     
    111113                if(array_key_exists('a', $_POST)) $Action = $_POST['a'];
    112114                  else if(array_key_exists('a', $_GET)) $Action = $_GET['a'];
    113                   else $Action = '';
    114                 if($Action == 'rss') $Output = $this->ShowRSS();
     115                  else $Action = '';           
    115116                if($Action == 'delerrlog') $Output = $this->DeleteErrorLog();
    116117                else $Output = $this->ShowList();
Note: See TracChangeset for help on using the changeset viewer.