Commit 27bda232 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Some fixes

parent b87d372f
......@@ -49,7 +49,7 @@ function provision_provision_pre_migrate_rollback(&$data, $url, $platform) {
* Switch the migrate directories around now that we have the new db installed
*/
function provision_drupal_provision_migrate(&$data, $url, $platform) {
drush_backend_invoke('provision deploy', array($url, $data['backup_file'], 'root' => $platform);
drush_backend_invoke('provision deploy', array($url, $data['backup_file'], 'root' => $platform));
}
......
......@@ -277,6 +277,7 @@ function _provision_find_profiles() {
$languages['en'] = 1;
// Find languages available
$files = array_keys(drush_scan_directory('./profiles/' . $name . '/translations', '\.po$', array('.', '..', 'CVS'), 0, FALSE, 'filepath'));
$files = array_merge($files, array_keys(drush_scan_directory('./profiles/' . $name , '\.po$', array('.', '..', 'CVS'), 0, FALSE, 'filepath')));
if (is_array($files)) {
foreach ($files as $file) {
if (preg_match('!(/|\.)([^\./]+)\.po$!', $file, $langcode)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment