Skip to content

Commit

Permalink
fix: empty tpl sections were not overriding
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Jun 11, 2020
1 parent 7634b96 commit 4b5e020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion classesLib.pas
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ function Ttpl.getSection(section:string; inherit:boolean=TRUE):PtplSection;
result:=sections[section]
else
result:=NIL;
if inherit and assigned(over) and ((result = NIL) or (trim(result.txt) = '')) then
if inherit and assigned(over) and (result = NIL) then
result:=over.getSection(section);
end; // getSection

Expand Down
1 change: 1 addition & 0 deletions whatsnew.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ propaganda
- fixed double "Content-Length" header on compressed pages
- fixed log text base color not matching system settings http://rejetto.com/forum/index.php?topic=13233.0
- fixed while renaming a file in the GUI, CTRL+C/V didn't work on the text
- fixed diff tpl logic: an empty section will now override the inherited one

VER 2.3m
propaganda
Expand Down

0 comments on commit 4b5e020

Please sign in to comment.