Commit 4101161c authored by Nigel McNie's avatar Nigel McNie
Browse files

Stylistic changes.

parent f1bc95b6
......@@ -32,15 +32,16 @@ require(dirname(dirname(dirname(__FILE__))) . '/init.php');
$pagename = param_alpha('pagename');
$data['pagename'] = $pagename;
if (!$page = @get_record('site_content', 'name', $pagename)) {
if (!$page = get_record('site_content', 'name', $pagename)) {
json_reply('local', get_string('loadsitepagefailed', 'admin'));
}
$data['content'] = $page->content;
$data['error'] = false;
$data['message'] = false;
json_headers();
echo json_encode($data);
$data = array(
'pagename' => $pagename,
'content' => $page->content,
'error' => false,
'message' => false,
);
json_reply(false, $data);
?>
Markdown is supported
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