Skip to content
Snippets Groups Projects
Commit 90668f37 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

use Request::pathInfo() if available, fixes #271

parent da2b67e5
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ class VipsPlugin extends StudIPPlugin implements StandardPlugin, SystemPlugin, P ...@@ -134,7 +134,7 @@ class VipsPlugin extends StudIPPlugin implements StandardPlugin, SystemPlugin, P
if (self::$exam_mode) { if (self::$exam_mode) {
$page = basename($_SERVER['PHP_SELF']); $page = basename($_SERVER['PHP_SELF']);
$path_info = $_SERVER['PATH_INFO']; $path_info = method_exists('Request', 'pathInfo') ? Request::pathInfo() : $_SERVER['PATH_INFO'];
$course_id = Context::getId(); $course_id = Context::getId();
// redirect page calls if necessary // redirect page calls if necessary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment