Commit de7986e3 authored by Elliot Pahl's avatar Elliot Pahl Committed by Elliot Pahl
Browse files

Create pieform in addauthority.php before calling smarty().

(cherry picked from commit 9b9cfff5)
parent 69b27b8c
......@@ -88,13 +88,14 @@ if ($institution && $plugin) {
'goto' => 'addauthority.php?c=1'
);
$form = pieform($form);
$smarty = smarty();
if ($add) {
$smarty->assign('PAGETITLE', get_string('addauthority', 'auth'));
} else {
$smarty->assign('PAGETITLE', get_string('editauthority', 'auth'));
}
$smarty->assign('auth_imap_form', pieform($form));
$smarty->assign('auth_imap_form', $form);
}
function auth_config_validate(Pieform $form, $values) {
......
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