diff options
| author | Michaela Brückner <brueckner@data-quest.de> | 2025-12-12 10:10:00 +0100 |
|---|---|---|
| committer | Michaela Brückner <brueckner@data-quest.de> | 2025-12-12 10:10:00 +0100 |
| commit | 69aa9b5657c7bef5d1713ede3cc4c83ff0fccb9c (patch) | |
| tree | 7f62e0b5284912460dacce67cac3a7e542ca295e /app/controllers/news.php | |
| parent | 71340b1e4d82b9fe623acbfca7f6754d998ff4d2 (diff) | |
open news content boxes if in course or institute context, re #3561tic-3561
Diffstat (limited to 'app/controllers/news.php')
| -rw-r--r-- | app/controllers/news.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/news.php b/app/controllers/news.php index 53fdd43..bbb589f 100644 --- a/app/controllers/news.php +++ b/app/controllers/news.php @@ -81,8 +81,11 @@ class NewsController extends StudipController * * @param String $range_id range id of the news to get displayed */ - public function display_action($range_id) + public function display_action($range_id, $new_news = false) { + + $this->mark_as_read = $new_news; + if (!$range_id) { $this->set_status(400); $this->render_nothing(); @@ -164,6 +167,8 @@ class NewsController extends StudipController $this->nobody = !$GLOBALS['user']->id || $GLOBALS['user']->id === 'nobody'; $this->visit(); + + // TODO how do I set all news to read? } private function visit() |
