Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
637f9025
Commit
637f9025
authored
Dec 05, 2006
by
Richard Mansfield
Browse files
Add json error message
parent
99864688
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/json/renderartefact.php
View file @
637f9025
...
...
@@ -32,14 +32,18 @@ $id = param_integer('id');
$artefact
=
artefact_instance_from_id
(
$id
);
$renderedartefact
=
$artefact
->
render
(
FORMAT_ARTEFACT_LISTSELF
,
null
);
log_debug
(
$renderedartefact
);
if
(
!
$renderedartefact
)
{
json_reply
(
'local'
,
'artefactnotrendered'
);
}
$result
=
array
(
'data'
=>
$renderedartefact
,
'error'
=>
false
,
'message'
=>
''
,
'message'
=>
'
artefactrendered
'
,
);
log_debug
(
$result
);
json_headers
();
print
json_encode
(
$result
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment