Changeset 5357 for trunk/install
- Timestamp:
- Mar 25, 2010, 9:18:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/install/db/90-database.php
r5341 r5357 45 45 46 46 // Fill table 47 $inserts = array(); 48 foreach (get_languages('utf-8') as $language_code => $language_name) 47 include_once(PHPWG_ROOT_PATH.'include/constants.php'); 48 include_once(PHPWG_ROOT_PATH.'admin/include/languages.class.php'); 49 50 $languages = new languages(PWG_CHARSET); 51 52 foreach ($languages->fs_languages as $language_code => $language_name) 49 53 { 50 $inserts[] = array( 51 'id' => $language_code, 52 'name' => $language_name, 53 ); 54 $languages->perform_action('activate', $language_code); 54 55 } 55 mass_inserts(PREFIX_TABLE.'languages', array('id', 'name'), $inserts);56 56 57 57 echo
Note: See TracChangeset
for help on using the changeset viewer.