Commit 4a092117 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Require view.php before copying views for new users

parent 2b8b957a
......@@ -1184,6 +1184,7 @@ function create_user($user, $profile=array(), $institution=null, $remoteauth=nul
function copy_view_for_user($userid, $templateid) {
require_once(get_config('libroot') . 'view.php');
if (!$templateid) {
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