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

    r880 r888  
    11<?php
    22
    3 class ModuleFrontPage extends AppModule
     3class ModuleFrontPage extends Module
    44{
    55  function __construct(System $System)
     
    1515  }
    1616
    17   function DoStart()
     17  function DoStart(): void
    1818  {
    19     $this->System->RegisterPage('', 'PageFrontPage');
    20     $this->System->RegisterMenuItem(array(
     19    $this->System->RegisterPage([''], 'PageFrontPage');
     20    Core::Cast($this->System)->RegisterMenuItem(array(
    2121      'Title' => T('Home'),
    2222      'Hint' => T('Main page'),
     
    7171class PageFrontPage extends Page
    7272{
    73   function Show()
     73  function Show(): string
    7474  {
    7575    global $Message, $MessageType;
Note: See TracChangeset for help on using the changeset viewer.