Skip to content
Snippets Groups Projects
Commit e63f91f1 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix missing pages on new installation

parent 274df21b
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,6 @@ class Internationalization {
$sql = 'INSERT INTO '.PAGE_TABLE.' SET type='.db_input($type)
.', name='.db_input($page['name'])
.', body='.db_input($page['body'])
.', lang='.db_input($tpl->getLang())
.', notes='.db_input($page['notes'])
.', created=NOW(), updated=NOW(), isactive=1';
if (db_query($sql) && ($id = db_insert_id())
......@@ -139,9 +138,6 @@ class Internationalization {
// Default Language
$_config->set('system_language', $this->langs[0]);
// content_id defaults to the `id` field value
db_query('UPDATE '.PAGE_TABLE.' SET content_id=id');
// Canned response examples
if (($tpl = $this->getTemplate('templates/premade.yaml'))
&& ($canned = $tpl->getData())) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment