From 90668f3719930cb663135b7c8e6aa4623e4b1223 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Mon, 9 Sep 2024 18:34:26 +0200 Subject: [PATCH] use Request::pathInfo() if available, fixes #271 --- VipsPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VipsPlugin.php b/VipsPlugin.php index 1ff8d7d..d608e3d 100644 --- a/VipsPlugin.php +++ b/VipsPlugin.php @@ -134,7 +134,7 @@ class VipsPlugin extends StudIPPlugin implements StandardPlugin, SystemPlugin, P if (self::$exam_mode) { $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(); // redirect page calls if necessary -- GitLab