Ignore:
Timestamp:
Jun 2, 2013, 9:14:50 PM (11 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/ImportZdechovCzRecords.php

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