Merged changes up to version 2.3.4 into unstable.
[fa-stable.git] / includes / packages.inc
index cc387f64425d121491be0cfa0497ad5ed31d4ef8..6e97e7d1cc8d787eae3e072287774278bdc4aeca 100644 (file)
@@ -187,7 +187,7 @@ function get_control_file($file, $index = false) {
                                if ($index !== true) {
                                        if ($index === false) break;
                                        if (!isset($pkg[$index])) {
-                                               display_error(_("No key field '$index' in file '$file'"));
+                                               display_error(sprintf(_("No key field '%s' in file '%s'"), $index, $file));
                                                return null;
                                        }
                                        $repo[$pkg[$index]] = $pkg;