Changeset 887 for trunk/Modules/Chat
- Timestamp:
- Nov 20, 2020, 12:08:12 AM (4 years ago)
- Location:
- trunk/Modules/Chat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Chat/Chat.php
r874 r887 3 3 class PageChatHistory extends Page 4 4 { 5 function __construct( $System)5 function __construct(System $System) 6 6 { 7 7 parent::__construct($System); … … 17 17 } 18 18 19 function Show() 19 function Show(): string 20 20 { 21 21 global $MonthNames; 22 22 23 if (! $this->System->User->CheckPermission('Chat', 'Display')) return 'Nemáte oprávnění';23 if (!ModuleUser::Cast($this->System->GetModule('User'))->User->CheckPermission('Chat', 'Display')) return 'Nemáte oprávnění'; 24 24 25 25 if (array_key_exists('date', $_GET)) $Date = $_GET['date']; … … 87 87 class ModuleChat extends AppModule 88 88 { 89 function __construct( $System)89 function __construct(System $System) 90 90 { 91 91 parent::__construct($System); … … 98 98 } 99 99 100 function DoStart() 100 function DoStart(): void 101 101 { 102 102 $this->System->Pages['chat'] = 'PageChatHistory'; -
trunk/Modules/Chat/irc_bot.php
r873 r887 39 39 } 40 40 41 function Run() 41 function Run(): void 42 42 { 43 43 global $Database; … … 195 195 echo("-Connection lost.\n"); 196 196 } 197 198 197 } 199 198
Note:
See TracChangeset
for help on using the changeset viewer.