Commit 4a917239 authored by Elliot Pahl's avatar Elliot Pahl Committed by Elliot Pahl
Browse files

Remove error supression in get_site_page_content().

parent 802f959a
......@@ -1880,7 +1880,7 @@ function site_content_pages() {
function get_site_page_content($pagename) {
if ($pagedata = @get_record('site_content', 'name', $pagename)) {
if ($pagedata = get_record('site_content', 'name', $pagename)) {
return $pagedata->content;
return get_string('sitecontentnotfound', 'mahara', get_string($pagename));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment