Ignore:
Timestamp:
Jan 27, 2014, 10:01:33 PM (11 years ago)
Author:
chronos
Message:
  • Added: Config parameter Description which is used for general web description included in meta section of HTML page and usable by modules.
  • Fixed: Error in RSS channels if no items loaded.
  • Modified: Log real last URI instead on script name in online users list in database.
  • Fixed: Serialization error in Database class if exception was raised.
  • Modified: Items in RSS channel of forum links to exact forum topics.
File:
1 edited

Legend:

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

    r637 r765  
    1818        $this->System->RegisterPage('shoutbox', 'PageShoutBox');
    1919        $this->System->ModuleManager->Modules['News']->RegisterRSS(array(
    20           'Title' => 'Kecátko', 'Channel' => 'shoutbox', 'Callback' => array('PageShoutBox', 'ShowRSS'),
     20          'Title' => T('Shoutbox'), 'Channel' => 'shoutbox', 'Callback' => array('PageShoutBox', 'ShowRSS'),
    2121          'Permission' => LICENCE_ANONYMOUS));           
    2222    if(array_key_exists('Search', $this->System->ModuleManager->Modules))
     
    138138        function ShowRSS()
    139139        {
     140                $Items = array();
    140141          $TitleLength = 50;
    141142          mb_internal_encoding('utf-8');
     
    148149            (
    149150                'Title' => $DbRow['UserName'].': '.$Title,
    150                 'Link' =>  'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/'),
     151                'Link' =>  'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/shoutbox/'),
    151152                'Description' => $DbRow['Text'],
    152153                'Time' => $DbRow['UnixDate'],
     
    154155          }
    155156          $Output = GenerateRSS(array
    156               (
    157                   'Title' => 'WoW překlad - Shoutbox',
    158                   'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/'),
    159                   'Description' => 'Překlad textů WoW',
    160                   'WebmasterEmail' => $this->System->Config['Web']['AdminEmail'],
    161                   'Items' => $Items,
    162               ));
    163            return($Output);
     157    (
     158      'Title' => $this->System->Config['Web']['Title'].' - '.T('Shoutbox'),
     159      'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/shoutbox/'),
     160      'Description' => $this->System->Config['Web']['Description'],
     161      'WebmasterEmail' => $this->System->Config['Web']['AdminEmail'],
     162      'Items' => $Items,
     163    ));
     164    return($Output);
    164165        }
    165166}
Note: See TracChangeset for help on using the changeset viewer.