]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
fix duplicate expansion of comments bootstrap
authorJoey Hess <joeyh@joeyh.name>
Fri, 8 Apr 2016 18:10:56 +0000 (14:10 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 8 Apr 2016 18:10:56 +0000 (14:10 -0400)
This caused an uninitiaied value warning, since inline deletes the cache of
content on the first expansion.

templates/page.tmpl

index 572e89175f14968654bcf6dc0bae573f7f690dc5..1e430649d6093b11512dcfabf85ebf3814f5fb90 100644 (file)
 <TMPL_IF COMMENTS>
 <TMPL_UNLESS THEME_BOOTSTRAP>
 <TMPL_IF HTML5><section<TMPL_ELSE><div</TMPL_IF> id="comments" role="complementary">
-<TMPL_VAR COMMENTS>
 <TMPL_ELSE>
 <section id="comments" title="Comments">
-<a href="<TMPL_VAR ADDCOMMENTURL>" class="btn btn-primary">Add a comment</a>
-<TMPL_VAR COMMENTS>
 </TMPL_UNLESS>
+<TMPL_VAR COMMENTS>
 <TMPL_IF ADDCOMMENTURL>
-<TMPL_UNLESS THEME_BOOTSTRAP>
 <div class="addcomment">
 <a href="<TMPL_VAR ADDCOMMENTURL>">Add a comment</a>
 </div>
-</TMPL_UNLESS>
 <TMPL_ELSE>
 <div class="addcomment">Comments on this page are closed.</div>
 </TMPL_IF>
 <TMPL_UNLESS THEME_BOOTSTRAP>
 <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF>
-<TMPL_VAR COMMENTS>
 <TMPL_ELSE>
-<TMPL_VAR COMMENTS>
 </section>
 </TMPL_UNLESS>
 </TMPL_IF>