Changeset 888 for trunk/Modules/Download


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

    r880 r888  
    11<?php
    22
    3 class ModuleDownload extends AppModule
     3class ModuleDownload extends Module
    44{
    55  function __construct(System $System)
     
    1414  }
    1515
    16   function DoStart()
     16  function DoStart(): void
    1717  {
    18     $this->System->RegisterPage('download', 'PageDownload');
    19     $this->System->RegisterMenuItem(array(
     18    $this->System->RegisterPage(['download'], 'PageDownload');
     19    Core::Cast($this->System)->RegisterMenuItem(array(
    2020      'Title' => T('Download'),
    2121      'Hint' => T('List of files for download'),
     
    147147  }
    148148
    149   function Show()
     149  function Show(): string
    150150  {
    151151    $this->Title = T('Download');
Note: See TracChangeset for help on using the changeset viewer.