Changeset 765 for trunk/Modules/Translation/Translation.php
- Timestamp:
- Jan 27, 2014, 10:01:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Translation.php
r725 r765 29 29 $this->System->RegisterPage('progress', 'PageProgress'); 30 30 $this->System->RegisterPage('TranslationList.php', 'PageTranslationList'); 31 $this->System->ModuleManager->Modules['News']->RegisterRSS(array('Title' => 'Poslední překlady',31 $this->System->ModuleManager->Modules['News']->RegisterRSS(array('Title' => T('Last translations'), 32 32 'Channel' => 'translation', 'Callback' => array($this, 'ShowRSS'), 'Permission' => LICENCE_ANONYMOUS)); 33 33 $this->System->RegisterMenuItem(array( … … 59 59 function ShowRSS() 60 60 { 61 $Items = array(); 61 62 $DbResult = $this->Database->query('SELECT UNIX_TIMESTAMP(`Date`) AS `Date`, `User`.`Name` AS `UserName`, `Text` FROM `Log` '. 62 63 'JOIN `User` ON `User`.`ID` = `Log`.`User` WHERE `Type` = 1 ORDER BY `Date` DESC LIMIT 100'); … … 65 66 $Items[] = array 66 67 ( 67 68 69 70 68 'Title' => strip_tags($DbRow['Text'].' ('.$DbRow['UserName'].')'), 69 'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/'), 70 'Description' => $DbRow['Text'], 71 'Time' => $DbRow['Date'], 71 72 ); 72 73 } 73 74 $Output = GenerateRSS(array 74 75 'Title' => 'WoW překlad - Poslední překlady',76 77 'Description' => 'Překlad textů WoW',78 79 80 75 ( 76 'Title' => $this->System->Config['Web']['Title'].' - '.T('Last translations'), 77 'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/'), 78 'Description' => $this->System->Config['Web']['Description'], 79 'WebmasterEmail' => $this->System->Config['Web']['AdminEmail'], 80 'Items' => $Items, 81 )); 81 82 return($Output); 82 83 }
Note:
See TracChangeset
for help on using the changeset viewer.