aboutsummaryrefslogtreecommitdiffstats
path: root/install/db
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-03-25 20:18:28 +0000
committerpatdenice <patdenice@piwigo.org>2010-03-25 20:18:28 +0000
commit6b445114da301438f386eeb9853448b53fd9e516 (patch)
tree029b826deec8d484047a7394c92b9477f3e54f43 /install/db
parent7ebdbee901b1290fc3578b81241b25227c786efb (diff)
Feature 1535: Add language manager.
git-svn-id: http://piwigo.org/svn/trunk@5357 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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"