Skip to content

Commit

Permalink
Fix prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 2, 2019
1 parent a20d824 commit 094719e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions htdocs/website/class/website.class.php
Expand Up @@ -844,8 +844,10 @@ function exportWebSite()
}
foreach($listofpages as $pageid => $objectpageold)
{
$line = 'INSERT INTO '.MAIN_DB_PREFIX.'website_page(rowid, fk_page, fk_website, pageurl, title, description, keyword, status, date_creation, tms, lang, import_key, grabbed_from, content)';
$line.= " VALUES(";
// Warning: We must keep llx_ here. It is a generic SQL.
$line = 'INSERT INTO llx_website_page(rowid, fk_page, fk_website, pageurl, title, description, keyword, status, date_creation, tms, lang, import_key, grabbed_from, content)';

$line.= " VALUES(";
$line.= $objectpageold->newid."+__MAXROWID__, ";
$line.= ($objectpageold->newfk_page ? $this->db->escape($objectpageold->newfk_page)."+__MAXROWID__" : "null").", ";
$line.= "__WEBSITE_ID__, ";
Expand Down

0 comments on commit 094719e

Please sign in to comment.