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

    r880 r888  
    11<?php
    22
    3 class ModuleTeam extends AppModule
     3class ModuleTeam extends Module
    44{
    55  function __construct(System $System)
     
    1414  }
    1515
    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(
    2020      'Title' => T('Teams'),
    2121      'Hint' => T('List of translating teams'),
     
    162162            '<tr><td colspan="2"><input type="submit" value="'.T('Save').'" /></td></tr>'.
    163163            '</table></fieldset></form>';
    164         } else $Output = ShowMesage('Tým nenalezen.', MESSAGE_CRITICAL);
     164        } else $Output = ShowMessage('Tým nenalezen.', MESSAGE_CRITICAL);
    165165      } else $Output = ShowMessage('Nezadáno id týmu', MESSAGE_CRITICAL);
    166166    } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
     
    328328  }
    329329
    330   function Show()
     330  function Show(): string
    331331  {
    332332    if (array_key_exists('action', $_GET))
Note: See TracChangeset for help on using the changeset viewer.