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.
This commit is contained in:
stilez 2016-09-25 11:00:14 +01:00 committed by GitHub
parent 6db038f768
commit b9b6841fac

View File

@ -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'])) {