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
a0cd21cd
Commit
a0cd21cd
authored
Mar 08, 2016
by
Simey Lameze
Committed by
Eloy Lafuente
Mar 08, 2016
Browse files
MDL-53031 mod_assign: add session check on assignment plugins management
parent
a0034bb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/assign/adminmanageplugins.php
View file @
a0cd21cd
...
...
@@ -25,11 +25,18 @@
require_once
(
dirname
(
__FILE__
)
.
'/../../config.php'
);
require_once
(
$CFG
->
dirroot
.
'/mod/assign/adminlib.php'
);
$subtype
=
required_param
(
'subtype'
,
PARAM_PLUGIN
);
$action
=
optional_param
(
'action'
,
null
,
PARAM_PLUGIN
);
$plugin
=
optional_param
(
'plugin'
,
null
,
PARAM_PLUGIN
);
if
(
!
empty
(
$plugin
))
{
require_sesskey
();
}
// Create the class for this controller.
$pluginmanager
=
new
assign_plugin_manager
(
required_param
(
'subtype'
,
PARAM_PLUGIN
)
);
$pluginmanager
=
new
assign_plugin_manager
(
$subtype
);
$PAGE
->
set_context
(
context_system
::
instance
());
// Execute the controller.
$pluginmanager
->
execute
(
optional_param
(
'action'
,
null
,
PARAM_PLUGIN
),
optional_param
(
'plugin'
,
null
,
PARAM_PLUGIN
));
$pluginmanager
->
execute
(
$action
,
$plugin
);
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