mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Better truncating of changelog
This commit is contained in:
parent
d82523f1d1
commit
7c12046edd
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ if ($user == 'admin') {
|
|||
if ($show_changelog_value_int==1) {
|
||||
$changelog='';
|
||||
$changelog_arr=file("/usr/local/vesta/Changelog.md");
|
||||
for ($i=0; $i<7; $i++) {
|
||||
for ($i=0; $i<30; $i++) {
|
||||
if (trim($changelog_arr[$i])=="") break;
|
||||
if ($i>1) $changelog.="\n";
|
||||
$changelog.=$changelog_arr[$i];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue