Commit 7ded9cea authored by Nigel McNie's avatar Nigel McNie
Browse files

Remove acceptance of path parameter, not needed any more. Shorten the defining...

Remove acceptance of path parameter, not needed any more. Shorten the defining of the TITLE constant.
parent f8dc3d77
......@@ -29,17 +29,13 @@ define('PUBLIC', 1);
require(dirname(dirname(__FILE__)) . '/init.php');
require(get_config('libroot') . 'view.php');
$viewid = param_integer('id');
$path = param_variable('path', null);
$viewid = param_integer('id');
$view = new View($viewid);
if (!can_view_view($viewid)) {
throw new AccessDeniedException();
}
// TODO: remove this langstring
$title = get_string('titleformatted', 'view', $view->get('title'), $view->formatted_owner());
define('TITLE', $title);
define('TITLE', $view->get('title') . ' ' . get_string('by', 'view') . ' ' . $view->formatted_owner());
$tutorfilefeedbackformrow = '';
$submittedgroup = $view->get('submittedto');
......
Supports Markdown
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