includes/pageutils.php
changeset 226 0e6478521004
parent 219 b1530b6a06d2
child 227 0eca1498a77b
equal deleted inserted replaced
225:b9a8a993f4e7 226:0e6478521004
   990     
   990     
   991     $n = ( $session->get_permissions('mod_comments')) ? $db->numrows() : $num_app;
   991     $n = ( $session->get_permissions('mod_comments')) ? $db->numrows() : $num_app;
   992     
   992     
   993     $subst = array(
   993     $subst = array(
   994         'num_comments' => $n,
   994         'num_comments' => $n,
   995         'page_type' => '<FIXME> whatever'
   995         'page_type' => $template->namespace_string
   996       );
   996       );
   997     
   997     
   998     $_ob .= '<p>';
   998     $_ob .= '<p>';
   999     $_ob .= ( $n == 0 ) ? $lang->get('comment_msg_count_zero', $subst) : ( $n == 1 ? $lang->get('comment_msg_count_one', $subst) : $lang->get('comment_msg_count_plural', $subst) );
   999     $_ob .= ( $n == 0 ) ? $lang->get('comment_msg_count_zero', $subst) : ( $n == 1 ? $lang->get('comment_msg_count_one', $subst) : $lang->get('comment_msg_count_plural', $subst) );
  1000     
  1000