diff --git a/classes/table/acknowledged_notice.php b/classes/table/acknowledged_notice.php index 79ca35a..cdecf44 100644 --- a/classes/table/acknowledged_notice.php +++ b/classes/table/acknowledged_notice.php @@ -16,6 +16,7 @@ namespace local_sitenotice\table; +use local_sitenotice\persistent\noticelink; use table_sql; use renderable; use local_sitenotice\helper; @@ -103,7 +104,7 @@ protected function define_table_columns() { 'idnumber' => get_string('idnumber'), ); // Add each hyperlink as a header. - $hlinks = helper::retrieve_notice_links($this->noticeid); + $hlinks = noticelink::get_notice_link_records($this->noticeid); foreach ($hlinks as $link) { $cols[$link->id] = "$link->text ($link->link)"; }