Bank transfer with zero amount is not allowed.
[fa-stable.git] / includes / packages.inc
index aa6304228e0d354ee786860c5db4942b76678278..6e97e7d1cc8d787eae3e072287774278bdc4aeca 100644 (file)
@@ -11,6 +11,7 @@
 ***********************************************************************/
 include_once($path_to_root. "/includes/archive.inc");
 include_once($path_to_root. "/includes/remote_url.inc");
+include_once($path_to_root. "/includes/hooks.inc");
 
 define('PKG_CACHE_PATH', $path_to_root.'/modules/_cache');
 define('PUBKEY_PATH', $path_to_root);
@@ -186,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;