Fix version count
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 9 Jul 2014 19:16:32 +0000 (21:16 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 9 Jul 2014 19:59:04 +0000 (21:59 +0200)
com.woltlab.wcf/templates/editHistory.tpl

index d14134a54da69ab7b631aeb92c01bd843da3ad1d..797ce4132b11837e7a4e02f3390b063b18941481 100644 (file)
@@ -56,7 +56,8 @@
 <form action="{link controller='EditHistory'}{/link}" method="get">
        <div class="tabularBox tabularBoxTitle marginTop">
                <header>
-                       <h2>{lang}wcf.edit.versions{/lang} <span class="badge badgeInverse">{#$objects|count}</span></h2>
+                       {assign var='versionCount' value=$objects|count}
+                       <h2>{lang}wcf.edit.versions{/lang} <span class="badge badgeInverse">{#$versionCount+1}</span></h2>
                </header>
                
                <table class="table">