From a80672230f33cba6b8c29bdb1ec9c908d35d4ff8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 11 Nov 2008 20:22:17 +0000 Subject: - Patch #332623 by Damien Tournoud: fixed importing translations and added a test. --- includes/locale.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') 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; -- cgit v1.2.3