diff -r a3a9e463c62f -r 7eef739a5b81 plugins/admin/LangManager.php
--- 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 '
' . $lang->get('acplm_err_lang_install_demo') . '
';
- 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 '' . $lang->get('acplm_msg_basic_save_success') . '
';
}
+ else if ( isset($parms['finish']) && defined('ENANO_DEMO_MODE') )
+ {
+ echo '' . $lang->get('acplm_err_lang_install_demo') . '
';
+ }
// 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 '' . $lang->get('acplm_err_lang_install_demo') . '
';
- break;
}
acp_start_form();