Changeset 888 for trunk/Modules/Admin/Admin.php
- Timestamp:
- Dec 27, 2022, 7:50:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Admin/Admin.php
r884 r888 1 1 <?php 2 2 3 class ModuleAdmin extends AppModule3 class ModuleAdmin extends Module 4 4 { 5 5 function __construct(System $System) … … 14 14 } 15 15 16 function DoStart() 17 { 18 $this->System->RegisterMenuItem(array(16 function DoStart(): void 17 { 18 Core::Cast($this->System)->RegisterMenuItem(array( 19 19 'Title' => T('Administration'), 20 20 'Hint' => T('Administration tools'), … … 23 23 'Icon' => '', 24 24 )); 25 $this->System->RegisterPage( 'admin', 'PageAdmin');25 $this->System->RegisterPage(['admin'], 'PageAdmin'); 26 26 } 27 27 } … … 305 305 } 306 306 307 function Show() 307 function Show(): string 308 308 { 309 309 $this->Title = T('Administration');
Note:
See TracChangeset
for help on using the changeset viewer.