summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerman van Rink2017-03-02 10:53:24 (GMT)
committerHerman van Rink2017-03-02 10:53:24 (GMT)
commit323d48267ae9a993118acb29c4670c4bac953a8c (patch)
tree837f76c83d2806846c9ad42a832081764a405bf2
parent9ad2b56f8b84721463059829c3a40a0c5f6620db (diff)
minor code styledev/2650290
-rw-r--r--platform/provision_drupal.drush.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/provision_drupal.drush.inc b/platform/provision_drupal.drush.inc
index 2002d1c..233d60f 100644
--- a/platform/provision_drupal.drush.inc
+++ b/platform/provision_drupal.drush.inc
@@ -732,8 +732,11 @@ function _provision_client_delete_symlink() {
*/
function _provision_find_profile_languages($profile_path) {
$languages = array();
+
+ // English is default.
$languages['en'] = 1;
- // Find languages available
+
+ // Find languages available.
$files = array_keys(drush_scan_directory($profile_path . '/translations', '/\.po$/', array('.', '..', 'CVS'), 0, FALSE, 'filepath'));
$files = array_merge($files, array_keys(drush_scan_directory($profile_path, '/\.po$/', array('.', '..', 'CVS'), 0, FALSE, 'filepath')));
if (is_array($files)) {