テンプレートに以下の smarty コードがあります
{capture name="diff"}
{datediff timestamp=$data_base.updated_date}
{/capture}
{$smarty.capture.diff} | {$smarty.const.UPDATE_BLOCK_SECONDS}
{if $smarty.capture.diff > $smarty.const.UPDATE_BLOCK_SECONDS}
enable update
{else}
disable update
{/if}
variable$smarty.capture.diff
と$smarty.const.UPDATE_BLOCK_SECONDS
の両方を出力すると、正しい値 (98969 と 86400 など) が出力されますが、{if} ステートメントは機能せず、常に値「disable update」が出力されます。