Ignore:
Timestamp:
Feb 17, 2021, 12:30:23 PM (4 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/RSS/RSS.php

    r887 r899  
    11<?php
    22
    3 class ModuleRSS extends AppModule
     3class ModuleRSS extends Module
    44{
    55  public array $RSSChannels;
     
    1111    $this->Version = '1.0';
    1212    $this->Creator = 'Chronos';
    13     $this->License = 'GNU/GPL';
     13    $this->License = 'GNU/GPLv3';
    1414    $this->Description = 'Web site RSS channel management';
    15     $this->Dependencies = array();
    1615    $this->RSSChannels = array();
    1716  }
     
    2019  {
    2120    $this->System->RegisterPage(['rss'], 'PageRSS');
    22     $this->System->RegisterPageHeader('RSS', array($this, 'ShowRSSHeader'));
     21    Core::Cast($this->System)->RegisterPageHeader('RSS', array($this, 'ShowRSSHeader'));
    2322  }
    2423
     
    5251  }
    5352
    54   static function Cast(AppModule $AppModule): ModuleRSS
     53  static function Cast(Module $Module): ModuleRSS
    5554  {
    56     if ($AppModule instanceof ModuleRSS)
     55    if ($Module instanceof ModuleRSS)
    5756    {
    58       return $AppModule;
     57      return $Module;
    5958    }
    60     throw new Exception('Expected ModuleRSS type but got '.gettype($AppModule));
     59    throw new Exception('Expected ModuleRSS type but got '.gettype($Module));
    6160  }
    6261}
Note: See TracChangeset for help on using the changeset viewer.