MDL-48968 blocks: fixed bug with pagetype handling

This commit is contained in:
Valerii Kuznetsov
2015-01-26 09:28:39 +13:00
committed by Sam Hemelryk
parent cccb0c0722
commit 20ef0b4257
+1 -1
View File
@@ -28,7 +28,7 @@ require_once(dirname(__FILE__) . '/../../config.php');
// Initialise ALL common incoming parameters here, up front.
$courseid = required_param('courseid', PARAM_INT);
$pagelayout = required_param('pagelayout', PARAM_ALPHAEXT);
$pagetype = required_param('pagetype', PARAM_ALPHAEXT);
$pagetype = required_param('pagetype', PARAM_ALPHANUMEXT);
$contextid = required_param('contextid', PARAM_INT);
$subpage = optional_param('subpage', '', PARAM_ALPHANUMEXT);
$cmid = optional_param('cmid', null, PARAM_INT);