Skip to content

Commit

Permalink
Added datetime as preview status to JSON result.
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Thönes <johannes.thoenes@googlemail.com>
  • Loading branch information
Lukasz Burdzanowski and Johannes Thönes authored and Johannes Thönes committed Apr 25, 2011
1 parent ebe7deb commit f3cae88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/exe/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ function ajax_lock(){
}
if($conf['autopreview'] && $_POST['wikitext']){
$json_array['preview_html'] = p_render('xhtml', p_get_instructions($_POST['wikitext']), $info);
$json_array['preview_status'] = dformat();
}

echo json_encode($json_array);
Expand Down

0 comments on commit f3cae88

Please sign in to comment.