0) ? $_GET['p'] : 1; list($comments, $error) = $is_replies ? get_artwork_comment_replies($id, $current_page) : get_artwork_comments($id, COMMENTS_PER_PAGE * ($current_page - 1), COMMENTS_PER_PAGE); if ($error) { die_with_message(500, get_string($error)); } $comments = $comments->body; $title = sprintf(get_string($is_replies ? 'artwork.replies-popup' : 'artwork.comments-popup'), $id); render_page_header($title); ?>

comments) ?>

hasNext) { ?>