From b9b6841fac4393fbbe6f15ca46fe441122b883d1 Mon Sep 17 00:00:00 2001 From: stilez Date: Sun, 25 Sep 2016 11:00:14 +0100 Subject: [PATCH] Remove unused arg in get_pkg_info() The 2nd argument ($info) isn't used in that function, and doesn't seem to be used anywhere else in the codebase. --- src/etc/inc/pkg-utils.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc index 0531415d23..936abe0192 100644 --- a/src/etc/inc/pkg-utils.inc +++ b/src/etc/inc/pkg-utils.inc @@ -340,7 +340,7 @@ function get_package_internal_name($package_data) { } // Get information about packages. -function get_pkg_info($pkgs = 'all', $info = 'all', $only_local = false) { +function get_pkg_info($pkgs = 'all', $only_local = false) { global $g, $input_errors; $out = ''; @@ -456,7 +456,7 @@ function get_pkg_info($pkgs = 'all', $info = 'all', $only_local = false) { function register_all_installed_packages() { global $g, $config, $pkg_interface; - $pkg_info = get_pkg_info('all', 'all', true); + $pkg_info = get_pkg_info('all', true); foreach ($pkg_info as $pkg) { if (!isset($pkg['installed'])) {