--- a/plugins/admin/LangManager.php Mon Feb 04 05:19:20 2008 -0500
+++ b/plugins/admin/LangManager.php Mon Feb 04 05:52:12 2008 -0500
@@ -95,12 +95,6 @@
break;
case 'modify_language':
- if ( defined('ENANO_DEMO_MODE') )
- {
- echo '<div class="error-box">' . $lang->get('acplm_err_lang_install_demo') . '</div>';
- break;
- }
-
$lang_id =& $parms['lang_id'];
if ( !is_int($lang_id) )
{
@@ -108,7 +102,7 @@
break;
}
- if ( isset($parms['finish']) && !empty($_POST['lang_name_native']) && !empty($_POST['lang_name_english']) )
+ if ( isset($parms['finish']) && !empty($_POST['lang_name_native']) && !empty($_POST['lang_name_english']) && !defined('ENANO_DEMO_MODE') )
{
// We just did validation above, it's safe to save.
$name_native = $db->escape($_POST['lang_name_native']);
@@ -120,6 +114,10 @@
echo '<div class="info-box">' . $lang->get('acplm_msg_basic_save_success') . '</div>';
}
+ else if ( isset($parms['finish']) && defined('ENANO_DEMO_MODE') )
+ {
+ echo '<div class="error-box">' . $lang->get('acplm_err_lang_install_demo') . '</div>';
+ }
// Select language data
$q = $db->sql_query('SELECT lang_name_native, lang_name_default, lang_code FROM ' . table_prefix . "language WHERE lang_id = $lang_id;");
@@ -303,7 +301,6 @@
else if ( isset($parms['save']) && defined('ENANO_DEMO_MODE') )
{
echo '<div class="error-box">' . $lang->get('acplm_err_lang_install_demo') . '</div>';
- break;
}
acp_start_form();