From b7349867ac704ef487e7bc07c03c0e59c6cc53e1 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 18 Aug 2006 06:10:48 +0000 Subject: [PATCH] r1081: Removing language XML debug mode --- admin/language.php | 4 ---- docs/schema_changes.sql | 2 ++ includes/api_language.php | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/admin/language.php b/admin/language.php index 232a098..1c56d7e 100644 --- a/admin/language.php +++ b/admin/language.php @@ -68,7 +68,6 @@ if ($_POST['do'] == 'insert') $language->set('charset', $bugsys->in['charset']); $language->set('direction', $bugsys->in['direction']); $language->set('userselect', $bugsys->in['userselect']); - $language->set('debug', $bugsys->in['debug']); $language->set('langcode', $bugsys->in['langcode']); $language->insert(); @@ -95,7 +94,6 @@ if ($_REQUEST['do'] == 'add') $admin->list_item(_('Right-to-Left'), 'rtl'); $admin->row_list(_('Direction'), 'direction'); $admin->row_yesno(_('User Selectable'), 'userselect', true); - $admin->row_yesno(_('Debug Mode (run directly from XML)'), 'langdebug', false); $admin->row_submit(); $admin->table_end(); @@ -115,7 +113,6 @@ if ($_POST['do'] == 'update') $language->set('charset', $bugsys->in['charset']); $language->set('direction', $bugsys->in['direction']); $language->set('userselect', $bugsys->in['userselect']); - $language->set('debug', $bugsys->in['debug']); $language->set('langcode', $bugsys->in['langcode']); $language->update(); @@ -151,7 +148,6 @@ if ($_REQUEST['do'] == 'edit') $admin->list_item(_('Right-to-Left'), 'rtl', (($language['direction'] == 'rtl') ? true : false)); $admin->row_list(_('Direction'), 'direction'); $admin->row_yesno(_('User Selectable'), 'userselect', $language['userselect']); - $admin->row_yesno(_('Debug Mode (run directly from XML)'), 'langdebug', (bool)$language['debug']); $admin->row_submit(); $admin->table_end(); diff --git a/docs/schema_changes.sql b/docs/schema_changes.sql index 96a5372..4e90f97 100644 --- a/docs/schema_changes.sql +++ b/docs/schema_changes.sql @@ -9,3 +9,5 @@ ALTER TABLE language CHANGE languagecode langcode VARCHAR(5) NOT NULL; ALTER TABLE favourite RENAME favorite; ALTER TABLE user CHANGE showcolours showcolors BOOL NULL; + +ALTER TABLE language DROP debug; diff --git a/includes/api_language.php b/includes/api_language.php index fdd72f4..8a8e382 100644 --- a/includes/api_language.php +++ b/includes/api_language.php @@ -43,7 +43,6 @@ class LanguageAPI extends API 'languageid' => array(TYPE_UINT, REQ_AUTO, 'verify_nozero'), 'title' => array(TYPE_STR, REQ_YES, 'verify_noempty'), 'charset' => array(TYPE_STR, REQ_YES), - 'debug' => array(TYPE_BOOL, REQ_NO), 'direction' => array(TYPE_STR, REQ_NO, ':self'), 'userselect' => array(TYPE_BOOL, REQ_NO), 'langcode' => array(TYPE_STR, REQ_YES) -- 2.43.5