summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-05-21 09:18:21 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-05-21 09:18:21 -0300
commitaed5ba4ec86f63f2f19393b47e1011fcd6e78895 (patch)
tree4de2d1c5264fcdf113b67ac18aa499ba8e990b84 /usr/local/www/pkg_mgr.php
parenta1b9ad59087bae17f546f24aad13c3ad9ba03499 (diff)
downloadpfsense-aed5ba4ec86f63f2f19393b47e1011fcd6e78895.zip
pfsense-aed5ba4ec86f63f2f19393b47e1011fcd6e78895.tar.gz
Fix package changelog link when package doesn't has its own directory inside config subdir. Ticket #3672
Diffstat (limited to 'usr/local/www/pkg_mgr.php')
-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