Commit 0e24596c authored by Richard Mansfield's avatar Richard Mansfield

Call pieform() before smarty()

Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 535c5c78
......@@ -34,7 +34,7 @@ define('TITLE', get_string('edittags'));
$tags = get_my_tags();
if ($tag = param_variable('tag', null)) {
$edittagform = array(
$edittagform = pieform(array(
'name' => 'edit_tag',
'elements' => array(
'tagname' => array(
......@@ -49,8 +49,8 @@ if ($tag = param_variable('tag', null)) {
'value' => get_string('submit'),
),
),
);
$deletetagform = array(
));
$deletetagform = pieform(array(
'name' => 'delete_tag',
'renderer' => 'oneline',
'elements' => array(
......@@ -60,7 +60,7 @@ if ($tag = param_variable('tag', null)) {
'confirm' => get_string('confirmdeletetag'),
),
),
);
));
}
$smarty = smarty();
......@@ -68,8 +68,8 @@ $smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->assign('tags', $tags);
if ($tag) {
$smarty->assign('tag', $tag);
$smarty->assign('edittagform', pieform($edittagform));
$smarty->assign('deletetagform', pieform($deletetagform));
$smarty->assign('edittagform', $edittagform);
$smarty->assign('deletetagform', $deletetagform);
}
$smarty->display('edittags.tpl');
......
......@@ -840,7 +840,6 @@ div.sideblock #friendscontrol label {
}
.edittags {
border: 1px solid #ddd;
margin: 0;
padding: .25em .5em;
}
a.tag {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment