Commit 58bab789 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1563567: Calling get_view() when there is no view id



Ends up trying to include lib/view.php when it's not needed

behatnotneeded - existing tests should suffice

Change-Id: Ie337ac11ed92d973364f2f3f24a41df3761da276
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 75205f36
......@@ -239,9 +239,9 @@ class ImageBrowser {
'jssuccesscallback' => 'imageBrowserConfigSuccess',
'jserrorcallback' => 'imageBrowserConfigError',
'elements' => $elements,
'viewgroup' => $this->get_view()->get('group'),
'viewgroup' => $this->get('view') ? $this->get_view()->get('group') : null,
'group' => $this->get('group'),
'viewinstitution' => $this->get_view()->get('institution'),
'viewinstitution' => $this->get('view') ? $this->get_view()->get('institution') : null,
'institution' => $this->get('institution'),
'configdirs' => $configdirs,
'plugintype' => 'blocktype',
......
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