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

    r880 r888  
    11<?php
    22
    3 class ModuleReferrer extends AppModule
     3class ModuleReferrer extends Module
    44{
    55  var $Excludes;
     
    1818  }
    1919
    20   function DoStart()
     20  function DoStart(): void
    2121  {
    2222    $this->Excludes[] = $this->System->Config['Web']['Host'];
    2323    $this->Log();
    24     $this->System->RegisterPage('referrer', 'PageReferrer');
    25     $this->System->RegisterMenuItem(array(
     24    $this->System->RegisterPage(['referrer'], 'PageReferrer');
     25    Core::Cast($this->System)->RegisterMenuItem(array(
    2626      'Title' => T('Promotion'),
    2727      'Hint' => 'Informace k propagaci tohoto projektu',
     
    246246  }
    247247
    248   function Show()
     248  function Show(): string
    249249  {
    250250    $this->Title = T('Promotion');
Note: See TracChangeset for help on using the changeset viewer.