summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-11-11 20:22:17 +0000
committerDries Buytaert <dries@buytaert.net>2008-11-11 20:22:17 +0000
commita80672230f33cba6b8c29bdb1ec9c908d35d4ff8 (patch)
tree0994fc9092b181a47584defeab00fb6ddad8fcdf /includes
parent5d85d16a752a640016601f36fc51a80e2c56c6ca (diff)
downloadbrdo-a80672230f33cba6b8c29bdb1ec9c908d35d4ff8.tar.gz
brdo-a80672230f33cba6b8c29bdb1ec9c908d35d4ff8.tar.bz2
- Patch #332623 by Damien Tournoud: fixed importing translations and added a test.
Diffstat (limited to 'includes')
-rw-r--r--includes/locale.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/locale.inc b/includes/locale.inc
index 248731cbb..793e50010 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -1046,7 +1046,7 @@ function _locale_import_po($file, $langcode, $mode, $group = NULL) {
*/
function _locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = 'default') {
- $fd = fopen(DRUPAL_ROOT . '/' . $file->filepath, "rb"); // File will get closed by PHP on return
+ $fd = fopen($file->filepath, "rb"); // File will get closed by PHP on return
if (!$fd) {
_locale_import_message('The translation import failed, because the file %filename could not be read.', $file);
return FALSE;