Révision aed5ba4e
Ajouté par Renato Botelho il y a presque 10 ans
usr/local/www/pkg_mgr.php | ||
---|---|---|
202 | 202 |
|
203 | 203 |
/* get history/changelog git dir */ |
204 | 204 |
$commit_dir=explode("/",$index['config_file']); |
205 |
$changeloglink ="https://github.com/pfsense/pfsense-packages/commits/master/config/".$commit_dir[(count($commit_dir)-2)]; |
|
205 |
$changeloglink = "https://github.com/pfsense/pfsense-packages/commits/master/config/"; |
|
206 |
if ($commit_dir[(count($commit_dir)-2)] == "config") |
|
207 |
$changeloglink .= $commit_dir[(count($commit_dir)-1)]; |
|
208 |
else |
|
209 |
$changeloglink .= $commit_dir[(count($commit_dir)-2)]; |
|
206 | 210 |
|
207 | 211 |
/* Check package info link */ |
208 | 212 |
if($index['pkginfolink']) { |
Formats disponibles : Unified diff
Fix package changelog link when package doesn't has its own directory inside config subdir. Ticket #3672