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

    r880 r888  
    33include_once(dirname(__FILE__).'/RSS.php');
    44
    5 class ModuleNews extends AppModule
     5class ModuleNews extends Module
    66{
    77  var $RSSChannels;
     
    1919  }
    2020
    21   function DoStart()
     21  function DoStart(): void
    2222  {
    23     $this->System->RegisterPage('news', 'PageNews');
    24     $this->System->RegisterPage('rss', 'PageRSS');
     23    $this->System->RegisterPage(['news'], 'PageNews');
     24    $this->System->RegisterPage(['rss'], 'PageRSS');
    2525    $this->RegisterRSS(array('Title' => T('News'), 'Channel' => 'news',
    2626      'Callback' => array('PageNews', 'ShowRSS'), 'Permission' => LICENCE_ANONYMOUS));
    27     $this->System->RegisterPageHeader('New', array($this, 'ShowRSSHeader'));
     27      Core::Cast($this->System)->RegisterPageHeader('New', array($this, 'ShowRSSHeader'));
    2828  }
    2929
     
    6969class PageNews extends Page
    7070{
    71   function Show()
     71  function Show(): string
    7272  {
    7373    $this->Title = T('News');
Note: See TracChangeset for help on using the changeset viewer.