From cb4a029ee134cd0fad009fa14c2e2518798fc082 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 15 Jan 2006 00:20:17 +0000 Subject: [PATCH] r712: - add -> insert... not update - Add a delete link --- admin/language.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/language.php b/admin/language.php index 7851582..3fa6019 100644 --- a/admin/language.php +++ b/admin/language.php @@ -70,6 +70,8 @@ if ($_POST['do'] == 'insert') build_languages(); build_language_cache($db->insert_id()); + + $admin->redirect('language.php?do=modify'); } // ################################################################### @@ -78,7 +80,7 @@ if ($_REQUEST['do'] == 'add') { $admin->page_start($lang->string('New Language')); - $admin->form_start('language.php', 'update'); + $admin->form_start('language.php', 'insert'); $admin->table_start(); $admin->table_head($lang->string('New Language'), 2, 'language_edit'); @@ -145,7 +147,7 @@ if ($_REQUEST['do'] == 'edit') $admin->row_yesno($lang->string('User Selectable'), 'userselect', $language['userselect']); $admin->row_yesno($lang->string('Debug Mode (run directly from XML)'), 'langdebug', (bool)$language['debug']); - $admin->row_submit(); + $admin->row_submit('[' . $lang->string('Delete') . ']'); $admin->table_end(); $admin->form_end(); -- 2.43.5