From c5b686f4eec460aa80888a2620020188a9f01331 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Thu, 7 Jul 2022 11:58:04 +0200
Subject: [PATCH] fix namespace issue, re #1278

---
 lib/activities/CoursewareContext.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/activities/CoursewareContext.php b/lib/activities/CoursewareContext.php
index 817deb49d36..7c83144ad7a 100755
--- a/lib/activities/CoursewareContext.php
+++ b/lib/activities/CoursewareContext.php
@@ -37,7 +37,7 @@ class CoursewareContext extends Context
             return \Context::COURSE;
         }
 
-        throw new UnexpectedValueException("Unknown context type {$this->context}");
+        throw new \UnexpectedValueException("Unknown context type {$this->context}");
     }
 
     public function getContextFullname($format = 'default')
@@ -54,7 +54,7 @@ class CoursewareContext extends Context
             return $course->getFullname($format);
         }
 
-        throw new UnexpectedValueException("Unknown context {$this->context}");
+        throw new \UnexpectedValueException("Unknown context {$this->context}");
     }
 
 }
-- 
GitLab