summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/pkg_mgr.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index 73dd917..4afb295 100644
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -202,7 +202,11 @@ include("head.inc");
/* get history/changelog git dir */
$commit_dir=explode("/",$index['config_file']);
- $changeloglink ="https://github.com/pfsense/pfsense-packages/commits/master/config/".$commit_dir[(count($commit_dir)-2)];
+ $changeloglink = "https://github.com/pfsense/pfsense-packages/commits/master/config/";
+ if ($commit_dir[(count($commit_dir)-2)] == "config")
+ $changeloglink .= $commit_dir[(count($commit_dir)-1)];
+ else
+ $changeloglink .= $commit_dir[(count($commit_dir)-2)];
/* Check package info link */
if($index['pkginfolink']) {
OpenPOWER on IntegriCloud