Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
713a2cbb
Commit
713a2cbb
authored
Dec 04, 2017
by
Damyon Wiese
Browse files
Merge branch 'MDL-60219-master' of
https://github.com/abias/moodle
parents
b0c4f9c2
ee73ec3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/lti/view.php
View file @
713a2cbb
...
...
@@ -87,14 +87,14 @@ $PAGE->set_url($url);
$launchcontainer
=
lti_get_launch_container
(
$lti
,
$toolconfig
);
if
(
$launchcontainer
==
LTI_LAUNCH_CONTAINER_EMBED_NO_BLOCKS
)
{
$PAGE
->
set_pagelayout
(
'
frametop'
);
// Most frametops don't include footer, and pre-post blocks.
$PAGE
->
set_pagelayout
(
'
incourse'
);
$PAGE
->
blocks
->
show_only_fake_blocks
();
// Disable blocks for layouts which do include pre-post blocks.
}
else
if
(
$launchcontainer
==
LTI_LAUNCH_CONTAINER_REPLACE_MOODLE_WINDOW
)
{
if
(
!
$forceview
)
{
$url
=
new
moodle_url
(
'/mod/lti/launch.php'
,
array
(
'id'
=>
$cm
->
id
));
redirect
(
$url
);
}
}
else
{
}
else
{
// Handles LTI_LAUNCH_CONTAINER_DEFAULT, LTI_LAUNCH_CONTAINER_EMBED, LTI_LAUNCH_CONTAINER_WINDOW.
$PAGE
->
set_pagelayout
(
'incourse'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment