diff --git a/htdocs/website/class/website.class.php b/htdocs/website/class/website.class.php index 396646ac40a..0e66e01db01 100644 --- a/htdocs/website/class/website.class.php +++ b/htdocs/website/class/website.class.php @@ -1031,7 +1031,7 @@ class Website extends CommonObject fputs($fp, $line); // Warning: We must keep llx_ here. It is a generic SQL. - $line = 'INSERT INTO llx_website_page(rowid, fk_page, fk_website, pageurl, aliasalt, title, description, lang, image, keywords, status, date_creation, tms, import_key, grabbed_from, type_container, htmlheader, content, author_alias)'; + $line = 'INSERT INTO llx_website_page(rowid, fk_page, fk_website, pageurl, aliasalt, title, description, lang, image, keywords, status, date_creation, tms, import_key, grabbed_from, type_container, htmlheader, content, author_alias, allowed_in_frames)'; $line .= " VALUES("; $line .= $objectpageold->newid."__+MAX_llx_website_page__, "; @@ -1076,9 +1076,11 @@ class Website extends CommonObject $stringtoexport = str_replace('="image/'.$website->ref.'/', '="image/__WEBSITE_KEY__/', $stringtoexport); $line .= "'".$this->db->escape($stringtoexport)."', "; // Replace \r \n to have record on 1 line - $line .= "'".$this->db->escape($objectpageold->author_alias)."'"; + $line .= "'".$this->db->escape($objectpageold->author_alias)."', "; + $line .= "'".$this->db->escape($objectpageold->allowed_in_frames)."'"; $line .= ");"; $line .= "\n"; + fputs($fp, $line); // Add line to update home page id during import