#159463 by hass (with phpdoc addition from myself): file_scan_directory() should not have a trailing slash in the dir parameter
parent
89f0d22323
commit
6993ea05b7
|
@ -849,7 +849,7 @@ function file_download() {
|
|||
* from being scanned.
|
||||
*
|
||||
* @param $dir
|
||||
* The base directory for the scan.
|
||||
* The base directory for the scan, without trailing slash.
|
||||
* @param $mask
|
||||
* The regular expression of the files to find.
|
||||
* @param $nomask
|
||||
|
|
|
@ -2411,7 +2411,7 @@ function locale_batch_by_language($langcode, $finished = '_locale_batch_installe
|
|||
// with names ending with $langcode.po. This allows for filenames
|
||||
// like node-module.de.po to let translators use small files and
|
||||
// be able to import in smaller chunks.
|
||||
$files = array_merge($files, file_scan_directory(dirname($component->filename) .'/translations/', '(^|\.)'. $langcode .'\.po$', array('.', '..', 'CVS'), 0, FALSE));
|
||||
$files = array_merge($files, file_scan_directory(dirname($component->filename) .'/translations', '(^|\.)'. $langcode .'\.po$', array('.', '..', 'CVS'), 0, FALSE));
|
||||
}
|
||||
|
||||
return _locale_batch_build($files, $finished);
|
||||
|
@ -2481,7 +2481,7 @@ function locale_batch_by_component($components, $finished = '_locale_batch_syste
|
|||
// as $langcode.po or with names ending with $langcode.po. This allows
|
||||
// for filenames like node-module.de.po to let translators use small
|
||||
// files and be able to import in smaller chunks.
|
||||
$files = array_merge($files, file_scan_directory(dirname($component->filename) .'/translations/', '(^|\.)('. $language_list .')\.po$', array('.', '..', 'CVS'), 0, FALSE));
|
||||
$files = array_merge($files, file_scan_directory(dirname($component->filename) .'/translations', '(^|\.)('. $language_list .')\.po$', array('.', '..', 'CVS'), 0, FALSE));
|
||||
}
|
||||
}
|
||||
return _locale_batch_build($files, $finished);
|
||||
|
|
Loading…
Reference in New Issue