mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'w38_MDL-29401_m22_frankenstyle' of git://github.com/skodak/moodle
This commit is contained in:
commit
e135797586
50 changed files with 267 additions and 142 deletions
|
@ -22,7 +22,7 @@
|
|||
require_once(dirname(__FILE__) . '/../config.php');
|
||||
require_once($CFG->libdir . '/adminlib.php');
|
||||
|
||||
$choose = optional_param('choose', '', PARAM_SAFEDIR);
|
||||
$choose = optional_param('choose', '', PARAM_PLUGIN);
|
||||
$reset = optional_param('reset', 0, PARAM_BOOL);
|
||||
$device = optional_param('device', '', PARAM_TEXT);
|
||||
|
||||
|
@ -43,7 +43,7 @@ if ($reset and confirm_sesskey()) {
|
|||
theme_reset_all_caches();
|
||||
|
||||
} else if ($choose && $device && confirm_sesskey()) {
|
||||
|
||||
|
||||
// Load the theme to make sure it is valid.
|
||||
$theme = theme_config::load($choose);
|
||||
// Get the config argument for the chosen device.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue