Revert #63 - Add attribute not rendering correctly

This commit is contained in:
Deon George 2019-04-20 15:39:48 +10:00
parent e37b498de1
commit 511ead3ec6

View File

@ -1212,7 +1212,7 @@ class TemplateRender extends PageRender {
$layout = '<td class="icon"><img src="%s/%s" alt="%s" /></td><td><a href="cmd.php?%s" title="%s" onclick="getDiv(\'ADD\').style.display = \'block\';return ajDISPLAY(\'ADD\',\'%s\',\'%s\');">%s</a></td>';
if (isAjaxEnabled())
return sprintf($this->layout['actionajax'],IMGDIR,'add.png',_('Add'),
return sprintf($layout,IMGDIR,'add.png',_('Add'),
htmlspecialchars($href),_('Add new attribute to this object'),
htmlspecialchars($href),str_replace('\'','\\\'',_('Add new attribute')),_('Add new attribute'));
else