Changeset 888 for trunk/Modules/Team/Team.php
- Timestamp:
- Dec 27, 2022, 7:50:23 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Team/Team.php
r880 r888 1 1 <?php 2 2 3 class ModuleTeam extends AppModule3 class ModuleTeam extends Module 4 4 { 5 5 function __construct(System $System) … … 14 14 } 15 15 16 function DoStart() 17 { 18 $this->System->RegisterPage( 'team', 'PageTeam');19 $this->System->RegisterMenuItem(array(16 function DoStart(): void 17 { 18 $this->System->RegisterPage(['team'], 'PageTeam'); 19 Core::Cast($this->System)->RegisterMenuItem(array( 20 20 'Title' => T('Teams'), 21 21 'Hint' => T('List of translating teams'), … … 162 162 '<tr><td colspan="2"><input type="submit" value="'.T('Save').'" /></td></tr>'. 163 163 '</table></fieldset></form>'; 164 } else $Output = ShowMes age('Tým nenalezen.', MESSAGE_CRITICAL);164 } else $Output = ShowMessage('Tým nenalezen.', MESSAGE_CRITICAL); 165 165 } else $Output = ShowMessage('Nezadáno id týmu', MESSAGE_CRITICAL); 166 166 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); … … 328 328 } 329 329 330 function Show() 330 function Show(): string 331 331 { 332 332 if (array_key_exists('action', $_GET))
Note:
See TracChangeset
for help on using the changeset viewer.