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/ClientVersion/ClientVersion.php

    r880 r888  
    11<?php
    22
    3 class ModuleClientVersion extends AppModule
     3class ModuleClientVersion extends Module
    44{
    55  function __construct(System $System)
     
    1414  }
    1515
    16   function DoStart()
     16  function DoStart(): void
    1717  {
    18     $this->System->RegisterPage('client-version', 'PageClientVersion');
    19     $this->System->RegisterMenuItem(array(
     18    $this->System->RegisterPage(['client-version'], 'PageClientVersion');
     19    Core::Cast($this->System)->RegisterMenuItem(array(
    2020      'Title' => T('Game version'),
    2121      'Hint' => T('List of the game client versions'),
     
    2929class PageClientVersion extends Page
    3030{
    31   function Show()
     31  function Show(): string
    3232  {
    3333    if (array_key_exists('action', $_GET))
Note: See TracChangeset for help on using the changeset viewer.