Ignore:
Timestamp:
Dec 27, 2022, 7:50:23 PM (23 months ago)
Author:
chronos
Message:
  • Modified: Updated Common package to latest version.
  • Modified: Fixes related to PHP 8.x.
File:
1 edited

Legend:

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

    r884 r888  
    11<?php
    22
    3 class ModuleAdmin extends AppModule
     3class ModuleAdmin extends Module
    44{
    55  function __construct(System $System)
     
    1414  }
    1515
    16   function DoStart()
    17   {
    18     $this->System->RegisterMenuItem(array(
     16  function DoStart(): void
     17  {
     18    Core::Cast($this->System)->RegisterMenuItem(array(
    1919      'Title' => T('Administration'),
    2020      'Hint' => T('Administration tools'),
     
    2323      'Icon' => '',
    2424    ));
    25     $this->System->RegisterPage('admin', 'PageAdmin');
     25    $this->System->RegisterPage(['admin'], 'PageAdmin');
    2626  }
    2727}
     
    305305  }
    306306
    307   function Show()
     307  function Show(): string
    308308  {
    309309    $this->Title = T('Administration');
Note: See TracChangeset for help on using the changeset viewer.