Ignore:
Timestamp:
Dec 27, 2022, 7:50:23 PM (2 years 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/Info/Info.php

    r880 r888  
    11<?php
    22
    3 class ModuleInfo extends AppModule
     3class ModuleInfo extends Module
    44{
    55  function __construct(System $System)
     
    1414  }
    1515
    16   function DoStart()
     16  function DoStart(): void
    1717  {
    18     $this->System->RegisterMenuItem(array(
     18    Core::Cast($this->System)->RegisterMenuItem(array(
    1919      'Title' => T('Instructions'),
    2020      'Hint' => 'Informace k překladu hry',
     
    2323      'Icon' => '',
    2424    ));
    25     $this->System->RegisterPage('info', 'PageInfo');
    26     $this->System->RegisterMenuItem(array(
     25    $this->System->RegisterPage(['info'], 'PageInfo');
     26    Core::Cast($this->System)->RegisterMenuItem(array(
    2727      'Title' => T('Presentation'),
    2828      'Hint' => 'Prezentace a motivace překladu',
     
    3131      'Icon' => '',
    3232    ));
    33     $this->System->RegisterPage('promotion', 'PagePromotion');
     33    $this->System->RegisterPage(['promotion'], 'PagePromotion');
    3434  }
    3535}
     
    3737class PageInfo extends Page
    3838{
    39   function Show()
     39  function Show(): string
    4040  {
    4141    $this->Title = T('Information for translators');
     
    7575class PagePromotion extends Page
    7676{
    77   function Show()
     77  function Show(): string
    7878  {
    7979    $this->Title = T('Promotion');
Note: See TracChangeset for help on using the changeset viewer.