aboutsummaryrefslogtreecommitdiffstats
path: root/install/db/90-database.php
diff options
context:
space:
mode:
Diffstat (limited to 'install/db/90-database.php')
-rw-r--r--install/db/90-database.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/install/db/90-database.php b/install/db/90-database.php
index 2daa931a1..532f36a2c 100644
--- a/install/db/90-database.php
+++ b/install/db/90-database.php
@@ -44,15 +44,15 @@ if (DB_CHARSET == 'utf8')
pwg_query($query);
// Fill table
-$inserts = array();
-foreach (get_languages('utf-8') as $language_code => $language_name)
+include_once(PHPWG_ROOT_PATH.'include/constants.php');
+include_once(PHPWG_ROOT_PATH.'admin/include/languages.class.php');
+
+$languages = new languages(PWG_CHARSET);
+
+foreach ($languages->fs_languages as $language_code => $language_name)
{
- $inserts[] = array(
- 'id' => $language_code,
- 'name' => $language_name,
- );
+ $languages->perform_action('activate', $language_code);
}
-mass_inserts(PREFIX_TABLE.'languages', array('id', 'name'), $inserts);
echo
"\n"