I’m working on a module. The module allows similar var_pairs to be passed in with parameters - there will usually be nothing between the var pairs. Example:
{exp:linklockerpro}
{link path="/someplace/another_dir/this_dir/LinkLockerFreeV15.zip" expires="180" label="delete me"}
{ll_link path="/proj_dload_dir/linklocker_free/LinkLockerFreeV15.zip" expires="180" label="delete me"}
{/ll_link}
{ll_link_global path="/someplace/another_dir/this_dir/LinkLockerFreeV15.zip" expires="2010-06-02" label="delete me" group="global"}
{/ll_link}
{ll_link path="/someplace/another_dir/this_dir/LinkLockerFreeV15.zip" expires="1" label="delete" anotherparam='false'}
{/notaclosingtag}
{/exp:linklockerpro}When the above code is parsed by the module, the last item (with a label of “delete”) is present in the $TMPL->var_pair even though it has an invalid closing tag (notice “notaclosingtag”). I am inserting things into the database before outputting to the screen. Therefore, even though the variable will not output correctly when the page is viewed, it will have an entry in my database tables.
Expected behavior would be that $TMPL->var_pair would check to make sure there was a closing tag for the pair before adding it to the array.