Changeset 738 for trunk/Modules/News


Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (10 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
Location:
trunk/Modules/News
Files:
2 edited

Legend:

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

    r622 r738  
    1616$doc = new DOMDocument();
    1717$doc->load($SourceURL);
    18 foreach($doc->getElementsByTagName('item') as $node) 
     18foreach($doc->getElementsByTagName('item') as $node)
    1919{
    2020  $Title = $node->getElementsByTagName('title')->item(0)->nodeValue;
    2121  $Description = $node->getElementsByTagName('description')->item(0)->nodeValue;
    22   $Link = $node->getElementsByTagName('link')->item(0)->nodeValue; 
     22  $Link = $node->getElementsByTagName('link')->item(0)->nodeValue;
    2323  $Date = $node->getElementsByTagName('pubDate')->item(0)->nodeValue;
    24  
     24
    2525  $Description = strip_tags($Description);
    2626  $Description = str_replace("\r", '', $Description);
     
    2929  //  $Date = substr($Date, $CommaPos + 1);
    3030  $Date = TimeToMysqlDateTime(strtotime($Date));
    31  
     31
    3232  $Query = 'SELECT Id FROM News WHERE (`Title`="'.$System->Database->real_escape_string($Title).'") AND (`Category`='.$Category.') AND (`Content` = "'.$System->Database->real_escape_string($Description).'") AND (`Link` = "'.$System->Database->real_escape_string($Link).'")';
    3333  $DbResult = $System->Database->query($Query);
  • trunk/Modules/News/News.php

    r711 r738  
    6767    ));
    6868    $this->System->FormManager->RegisterFormType('TNewsCategory', array(
    69         'Type' => 'Reference',
    70         'Table' => 'NewsCategory',
    71         'Id' => 'Id',
    72         'Name' => 'Caption',
    73         'Filter' => '1',
     69      'Type' => 'Reference',
     70      'Table' => 'NewsCategory',
     71      'Id' => 'Id',
     72      'Name' => 'Caption',
     73      'Filter' => '1',
    7474    ));
    7575    $this->System->FormManager->RegisterFormType('TNewsList', array(
    76         'Type' => 'ManyToOne',
    77         'Table' => 'News',
    78         'Id' => 'Id',
    79         'Ref' => 'Category',
    80         'Filter' => '1',
    81     ));
    82    
     76      'Type' => 'ManyToOne',
     77      'Table' => 'News',
     78      'Id' => 'Id',
     79      'Ref' => 'Category',
     80      'Filter' => '1',
     81    ));
     82
    8383    if($this->System->ModuleManager->ModulePresent('Search'))
    8484    {
Note: See TracChangeset for help on using the changeset viewer.