From e63f91f13085e07747cc598e9d88562facf2012f Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 28 May 2015 11:52:21 -0500
Subject: [PATCH] oops: Fix missing pages on new installation

---
 include/class.i18n.php | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/class.i18n.php b/include/class.i18n.php
index 082d8040b..02ec028f2 100644
--- a/include/class.i18n.php
+++ b/include/class.i18n.php
@@ -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())) {
-- 
GitLab