diff --git a/files/index.php b/files/index.php index 889ce72e6dd..35c5de5c531 100644 --- a/files/index.php +++ b/files/index.php @@ -9,8 +9,6 @@ require("../config.php"); - global $USER; - $id = required_param('id', PARAM_INT); $file = optional_param('file', '', PARAM_PATH); $wdir = optional_param('wdir', '', PARAM_PATH); diff --git a/mod/resource/coursefiles.php b/mod/resource/coursefiles.php index 42c98dbc1ce..579b007a9ab 100644 --- a/mod/resource/coursefiles.php +++ b/mod/resource/coursefiles.php @@ -13,8 +13,6 @@ require("../../config.php"); require("../../files/mimetypes.php"); - global $USER; - $id = required_param('id', PARAM_INT); $file = optional_param('file', '', PARAM_PATH); $wdir = optional_param('wdir', '', PARAM_PATH);