From 47da93e8f3b405479597d6f01400e7501ad298b3 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Tue, 28 Jul 2015 20:46:52 -0500 Subject: [PATCH] db: Fix missing definition of the %translation table --- bootstrap.php | 1 + include/class.export.php | 2 +- include/class.translation.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index d252b95c4..dac403a93 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -131,6 +131,7 @@ class Bootstrap { define('PLUGIN_TABLE', $prefix.'plugin'); define('SEQUENCE_TABLE', $prefix.'sequence'); + define('TRANSLATION_TABLE', $prefix.'translation'); define('API_KEY_TABLE',$prefix.'api_key'); define('TIMEZONE_TABLE',$prefix.'timezone'); diff --git a/include/class.export.php b/include/class.export.php index b6b9449a5..c5621e1f7 100644 --- a/include/class.export.php +++ b/include/class.export.php @@ -408,7 +408,7 @@ class DatabaseExporter { TIMEZONE_TABLE, SESSION_TABLE, PAGE_TABLE, FORM_SEC_TABLE, FORM_FIELD_TABLE, LIST_TABLE, LIST_ITEM_TABLE, FORM_ENTRY_TABLE, FORM_ANSWER_TABLE, USER_TABLE, USER_EMAIL_TABLE, - PLUGIN_TABLE, THREAD_COLLABORATOR_TABLE, + PLUGIN_TABLE, THREAD_COLLABORATOR_TABLE, TRANSLATION_TABLE, USER_ACCOUNT_TABLE, ORGANIZATION_TABLE, NOTE_TABLE ); diff --git a/include/class.translation.php b/include/class.translation.php index 7bea8c466..93c7cc4f3 100644 --- a/include/class.translation.php +++ b/include/class.translation.php @@ -858,7 +858,7 @@ require_once INCLUDE_DIR . 'class.orm.php'; class CustomDataTranslation extends VerySimpleModel { static $meta = array( - 'table' => 'ost_translation', + 'table' => TRANSLATION_TABLE, 'pk' => array('id') ); -- GitLab