diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-13 10:31:53 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-13 10:31:53 -0200 |
commit | 25fc475cb82afb3fbe23b05dee2cdabf05194735 (patch) | |
tree | 9e60267c74e8637a0eadbfbe5daa01e76f025976 /src/usr/local/www/pkg_mgr_installed.php | |
parent | 5436b15c92f13eb2d7f727fac461c2833a58a09d (diff) | |
download | pfsense-25fc475cb82afb3fbe23b05dee2cdabf05194735.zip pfsense-25fc475cb82afb3fbe23b05dee2cdabf05194735.tar.gz |
Use recently added shortname and changeloglink from get_pkg_info()
Diffstat (limited to 'src/usr/local/www/pkg_mgr_installed.php')
-rw-r--r-- | src/usr/local/www/pkg_mgr_installed.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/usr/local/www/pkg_mgr_installed.php b/src/usr/local/www/pkg_mgr_installed.php index e4c487a..d63ac60 100644 --- a/src/usr/local/www/pkg_mgr_installed.php +++ b/src/usr/local/www/pkg_mgr_installed.php @@ -119,11 +119,6 @@ if(empty($installed_packages)):?> continue; } - $shortname = $pkg['name']; - pkg_remove_prefix($shortname); - - // XXX: Add it to globals.inc? - $changeloglink ="https://github.com/pfsense/FreeBSD-ports/commits/devel/{$pkg['categories'][0]}/{$pkg['name']}"; #check package version $txtcolor = "black"; $upgradeavail = false; @@ -165,14 +160,14 @@ if(empty($installed_packages)):?> <?php } ?> </td> <td> - <font color="<?=$txtcolor?>"><?=$shortname?></font> + <font color="<?=$txtcolor?>"><?=$pkg['shortname']?></font> </td> <td> <?=implode(" ", $pkg['categories'])?> </td> <td> <?php if (!$g['disablepackagehistory']):?> - <a target="_blank" title="<?=gettext("View changelog")?>" href="<?=htmlspecialchars($changeloglink)?>"> + <a target="_blank" title="<?=gettext("View changelog")?>" href="<?=htmlspecialchars($pkg['changeloglink'])?>"> <?php endif;?> <?=htmlspecialchars($pkg['installed_version'])?> <?php if (!$g['disablepackagehistory']):?> |