Ignore:
Timestamp:
Feb 3, 2024, 11:35:58 PM (3 months ago)
Author:
chronos
Message:
  • Fixed: Correct filtering of RSS news.
File:
1 edited

Legend:

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

    r953 r964  
    2727    $this->Description = 'News and news groups management';
    2828    $this->Dependencies = array(ModuleUser::GetName(), ModuleLog::GetName(), ModuleFile::GetName());
    29     $this->SupportedModules = array('Search');
    3029    $this->Models = array(NewsCategory::GetClassName(), News::GetClassName());
    3130  }
     
    3736    $this->System->RegisterPage(['aktuality', 'rss'], 'PageNewsRss');
    3837    $this->System->RegisterPage(['aktuality', 'aktualizace'], 'PageNewsUpdate');
    39     $this->System->FormManager->RegisterClass('News', array(
     38    Core::Cast($this->System)->FormManager->RegisterClass('News', array(
    4039      'Title' => 'Aktualita',
    4140      'Table' => 'News',
     
    5453      ),
    5554    ));
    56     $this->System->FormManager->RegisterClass('NewsCategory', array(
     55    Core::Cast($this->System)->FormManager->RegisterClass('NewsCategory', array(
    5756      'Title' => 'Kategorie aktualit',
    5857      'Table' => 'NewsCategory',
     
    6665      ),
    6766    ));
    68     $this->System->FormManager->RegisterFormType('TNewsCategory', array(
     67    Core::Cast($this->System)->FormManager->RegisterFormType('TNewsCategory', array(
    6968      'Type' => 'Reference',
    7069      'Table' => 'NewsCategory',
     
    7372      'Filter' => '1',
    7473    ));
    75     $this->System->FormManager->RegisterFormType('TNewsList', array(
     74    Core::Cast($this->System)->FormManager->RegisterFormType('TNewsList', array(
    7675      'Type' => 'ManyToOne',
    7776      'Table' => 'News',
     
    153152    {
    154153      $this->NewsSetting[] = array('CategoryId' => $NewsCategory['Id'], 'Index' => $I, 'Enabled' => 1,
    155         'ItemCount' => $this->System->Config['Web']['News']['Count'], 'DaysAgo' => $this->System->Config['Web']['News']['DaysAgo'], 'Group' => $NewsCategory['Group']);
     154        'ItemCount' => Core::Cast($this->System)->Config['Web']['News']['Count'], 'DaysAgo' =>
     155        Core::Cast($this->System)->Config['Web']['News']['DaysAgo'], 'Group' => $NewsCategory['Group']);
    156156      $I++;
    157157    }
     
    160160    {
    161161      $NewsSettingCookie = unserialize($_COOKIE['NewsSetting']);
    162       foreach ($this->NewsSetting as $Index => $this->NewSetting)
     162      foreach ($this->NewsSetting as $Index => $this->NewsSetting)
    163163      {
    164164        if (array_key_exists($Index, $NewsSettingCookie))
    165           $this->NewsSetting[$Index] = array_merge($this->NewSetting, $NewsSettingCookie[$Index]);
     165          $this->NewsSetting[$Index] = array_merge($this->NewsSetting, $NewsSettingCookie[$Index]);
    166166      }
    167167    }
Note: See TracChangeset for help on using the changeset viewer.