summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2011-11-23 09:20:39 (GMT)
committer Gábor Hojtsy2011-11-23 09:20:39 (GMT)
commit176f21ba1c748dc9d2562834f638a89016ca9a57 (patch)
tree2cb790d2b9496cde26ee5013639c84adb3b11795
parent653de6736227766e6fd095cef7c0d6fa4a319c17 (diff)
Issue #1288838 by anrikun: fix bad code indentation in _locale_batch_build()
-rw-r--r--includes/locale.inc29
1 files changed, 15 insertions, 14 deletions
diff --git a/includes/locale.inc b/includes/locale.inc
index 1bf7a0a..8e03da4 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -2621,20 +2621,21 @@ function _locale_batch_build($files, $finished = NULL, $components = array()) {
$operations = array();
foreach ($files as $file) {
// We call _locale_batch_import for every batch operation.
- $operations[] = array('_locale_batch_import', array($file->filename)); }
- $batch = array(
- 'operations' => $operations,
- 'title' => $t('Importing interface translations'),
- 'init_message' => $t('Starting import'),
- 'error_message' => $t('Error importing interface translations'),
- 'file' => './includes/locale.inc',
- // This is not a batch API construct, but data passed along to the
- // installer, so we know what did we import already.
- '#components' => $components,
- );
- if (isset($finished)) {
- $batch['finished'] = $finished;
- }
+ $operations[] = array('_locale_batch_import', array($file->filename));
+ }
+ $batch = array(
+ 'operations' => $operations,
+ 'title' => $t('Importing interface translations'),
+ 'init_message' => $t('Starting import'),
+ 'error_message' => $t('Error importing interface translations'),
+ 'file' => './includes/locale.inc',
+ // This is not a batch API construct, but data passed along to the
+ // installer, so we know what did we import already.
+ '#components' => $components,
+ );
+ if (isset($finished)) {
+ $batch['finished'] = $finished;
+ }
return $batch;
}
return FALSE;