X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=install%2Findex.php;h=20ad2f8ef0b5dd6fcbf16c625234f7b28e1afca0;hb=c341ed18a300ba530e511b6f7f3877425e0a7e7c;hp=11e3c6edf3f66cf2cf1847293e623ece8f95907f;hpb=67c5891b4655efc3dd1a641f1f82e4db70388315;p=nucleus-jp%2Fnucleus-next.git diff --git a/install/index.php b/install/index.php index 11e3c6e..20ad2f8 100644 --- a/install/index.php +++ b/install/index.php @@ -43,7 +43,7 @@ if ( version_compare(PHP_VERSION, '5.3.0', '<') ) } /* default installed plugins and skins */ -$aConfPlugsToInstall = array('NP_SecurityEnforcer', 'NP_SkinFiles'); +$aConfPlugsToInstall = array('NP_SecurityEnforcer', 'NP_SkinFiles', 'NP_Medium'); $aConfSkinsToImport = array('atom', 'rss2.0', 'rsd', 'default', 'admin/default', 'admin/bookmarklet'); // Check if some important files @@ -90,14 +90,7 @@ else } // include translation file -if ( array_key_exists('locale', $_POST) ) $param->set_locale(); -i18n::set_current_locale($param->locale); -$translation_file = './locales/' . i18n::get_current_locale() . '.' . i18n::get_current_charset() . '.php'; -if ( !file_exists($translation_file) ) -{ - $translation_file = './locales/en_Latn_US.UTF-8.php'; -} -include($translation_file); +$param->set_locale(); do_action(); @@ -147,7 +140,6 @@ function do_action() switch ( $param->state ) { case 'locale': - $param->set_locale(); $param->set_state('mysql'); $isPostback = false; break; @@ -242,9 +234,21 @@ function show_header()

NucleusCMS