Commit 5baff6bd authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix js error on view artefact page

parent eb15bc2f
......@@ -96,6 +96,9 @@ feedbacklist.statevars.push('view', 'artefact');
feedbacklist.updateOnLoad();
EOF;
$feedbackform = pieform(add_feedback_form(false));
$objectionform = pieform(objection_form());
$smarty = smarty(
array('mahara', 'tablerenderer', 'feedbacklist'),
array('<link rel="stylesheet" type="text/css" href="' . get_config('wwwroot') . 'theme/views.css">'),
......@@ -121,8 +124,8 @@ else if ($view->get('group')) {
}
$smarty->assign('ownername', $view->formatted_owner());
$smarty->assign('addfeedbackform', pieform(add_feedback_form(false)));
$smarty->assign('objectionform', pieform(objection_form()));
$smarty->assign('addfeedbackform', $feedbackform);
$smarty->assign('objectionform', $objectionform);
$smarty->assign('anonfeedback', !$USER->is_logged_in() && $viewid == get_view_from_token(get_cookie('viewaccess:'.$viewid)));
$smarty->display('view/artefact.tpl');
......
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