aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2023-02-20 16:15:43 +0100
committerMoritz Strohm <strohm@data-quest.de>2023-02-20 16:15:43 +0100
commit881ff46b200dd244aad6dce10a9834f998ba2547 (patch)
tree732da8e9d64bebf3eea24117e9754a6d7c9fb279
parent0a30e07bdcff5eeca651fe495ebe3f90abb35ef5 (diff)
fixed display of studygroup avatar through StudygroupAvatar classbiest-02192-and-02196
-rw-r--r--lib/classes/StudygroupAvatar.class.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/classes/StudygroupAvatar.class.php b/lib/classes/StudygroupAvatar.class.php
index 3ad94db..c889f5d 100644
--- a/lib/classes/StudygroupAvatar.class.php
+++ b/lib/classes/StudygroupAvatar.class.php
@@ -17,6 +17,23 @@ class StudygroupAvatar extends CourseAvatar
/**
* @inheritdoc
*/
+ static function getAvatar($id)
+ {
+ return new StudygroupAvatar($id);
+ }
+
+ /**
+ * @inheritdoc
+ */
+ static function getNobody()
+ {
+ return new StudygroupAvatar('nobody');
+ }
+
+
+ /**
+ * @inheritdoc
+ */
protected function generateFileName($user_id, $size, $ext = 'png', $retina = false)
{
if ($user_id === Avatar::NOBODY) {