summaryrefslogtreecommitdiff
path: root/includes/locale.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/locale.inc')
-rw-r--r--includes/locale.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/locale.inc b/includes/locale.inc
index 4adbae975..1c79636c6 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -1167,10 +1167,8 @@ function locale_add_language($langcode, $name = NULL, $native = NULL, $direction
* Text group to import PO file into (eg. 'default' for interface translations)
*/
function _locale_import_po($file, $langcode, $mode, $group = NULL) {
- // If not in 'safe mode', increase the maximum execution time.
- if (!ini_get('safe_mode')) {
- set_time_limit(240);
- }
+ // Try to allocate enough time to parse and import the data.
+ drupal_set_time_limit(240);
// Check if we have the language already in the database.
if (!db_query("SELECT COUNT(language) FROM {languages} WHERE language = :language", array(':language' => $langcode))->fetchField()) {