aboutsummaryrefslogtreecommitdiff
path: root/lib/models/NewsRange.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/NewsRange.class.php')
-rw-r--r--lib/models/NewsRange.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/models/NewsRange.class.php b/lib/models/NewsRange.class.php
index 0bcaaa6..087e12b 100644
--- a/lib/models/NewsRange.class.php
+++ b/lib/models/NewsRange.class.php
@@ -43,12 +43,12 @@ class NewsRange extends SimpleORMap
parent::configure($config);
}
- function getType()
+ public function getType()
{
return get_object_type($this->range_id, ['sem','inst','user','fak']);
}
- function getName()
+ public function getName()
{
switch ($this->type) {
case 'global':
@@ -64,6 +64,6 @@ class NewsRange extends SimpleORMap
case 'fak':
return $this->institute->name;
break;
- }
+ }
}
}