diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-10-22 16:12:11 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-10-22 16:12:11 +0000 |
| commit | 5974e61b65c86eba9c3d5430bebd3762583b3962 (patch) | |
| tree | 2119d3053de6b6a135eb41103c0b037dd3c2b31a /lib/plugins/engine | |
| parent | 85389d3ddcc8de824355cb2c50ef8792bec4448a (diff) | |
restore potentially overwritten variable, fixes #4739
Closes #4739
Merge request studip/studip!3536
Diffstat (limited to 'lib/plugins/engine')
| -rw-r--r-- | lib/plugins/engine/PluginManager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/plugins/engine/PluginManager.php b/lib/plugins/engine/PluginManager.php index 05e2b14..919e175 100644 --- a/lib/plugins/engine/PluginManager.php +++ b/lib/plugins/engine/PluginManager.php @@ -363,6 +363,10 @@ class PluginManager require_once $pluginfile; + // Restore variable $class that might have been overwritten by the + // previous require + $class = func_get_arg(0); + return new ReflectionClass($class); } |
