Ignore:
Timestamp:
Jun 2, 2013, 9:14:50 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Import aktualit z jiných webů se odkazoval na dřívější globální proměnnou $Database.
File:
1 edited

Legend:

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

    r533 r542  
    3131  //echo('Link: '.$Link.'<br><hr>');
    3232 
    33   $DbResult = $Database->select('News', 'Id', '`Title`="'.$Database->real_escape_string($Title).'" AND `Category`='.$Category);
    34   //echo($Database->LastQuery);
     33  $DbResult = $System->Database->select('News', 'Id', '`Title`="'.$System->Database->real_escape_string($Title).'" AND `Category`='.$Category);
     34  //echo($System->Database->LastQuery);
    3535  if($DbResult->num_rows == 0)
    3636  {
    37     $Database->insert('News', array('Title' => $Title, 'Date' => 'NOW()', 'Author' => $Author, 'Category' => $Category, 'Content' => $Description, 'Link' => $Link));
    38     echo($Database->insert_id.',');
     37    $System->Database->insert('News', array('Title' => $Title, 'Date' => 'NOW()', 'Author' => $Author, 'Category' => $Category, 'Content' => $Description, 'Link' => $Link));
     38    echo($System->Database->insert_id.',');
    3939  }
    4040}
Note: See TracChangeset for help on using the changeset viewer.