"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/handler/page/_comments.php" between
wacko.6.1.14.zip and wacko.6.1.15.zip

About: WackoWiki is a multilingual Wiki-engine that supports WYTIWYG-editing, page rights (ACLs), design themes (skins), file upload, email notification and much more.

_comments.php  (wacko.6.1.14):_comments.php  (wacko.6.1.15)
skipping to change at line 192 skipping to change at line 192
{ {
$tpl->autocomplete = true; $tpl->autocomplete = true;
} }
// session heartbeat timeout = wiki session timeo ut - 40 second // session heartbeat timeout = wiki session timeo ut - 40 second
$tpl->user_heartbeat = $this->sess->cf_gc_maxlife time - 40; $tpl->user_heartbeat = $this->sess->cf_gc_maxlife time - 40;
} }
$tpl->wikiedit = $this->db->base_path . Ut::join_path(IMA GE_DIR, 'wikiedit') . '/'; $tpl->wikiedit = $this->db->base_path . Ut::join_path(IMA GE_DIR, 'wikiedit') . '/';
$tpl->leave(); $tpl->leave(); // end comment form
}
else if ($this->forum)
{
$message = Ut::perc_replace($this->_t('CommentHint'),
$this->href('', $this->db->login_page),
$this->href('', $this->db->registration_page)
);
$tpl->h_hint = $this->show_message($message, 'disabled',
false);
} }
// end comment form
} }
else else
{ {
$c = $this->page['comments']; $c = $this->page['comments'];
if (($c < 1) && $this->has_access('comment')) if (($c < 1) && $this->has_access('comment'))
{ {
$have_comments = $this->_t('Comments0'); $have_comments = $this->_t('Comments0');
} }
else if ($c == 1) else if ($c == 1)
{ {
$have_comments = $this->_t('Comments1'); $have_comments = $this->_t('Comments1');
} }
else else if ($c > 1)
{ {
$have_comments = Ut::perc_replace($this->_t('CommentsN'), $c); $have_comments = Ut::perc_replace($this->_t('CommentsN'), $c);
} }
// show link to show comment only if there is one or/and user has the right to add a new one // show link to show comment only if there is one or/and user has the right to add a new one
if (!empty($have_comments)) if (!empty($have_comments))
{ {
$tpl->href = $this->href('', '', ['show_comm ents' => 1, '#' => 'header-comments']); $tpl->href = $this->href('', '', ['show_comm ents' => 1, '#' => 'header-comments']);
$tpl->title = $this->_t('ShowComments'); $tpl->title = $this->_t('ShowComments');
$tpl->text = $have_comments; $tpl->text = $have_comments;
 End of changes. 3 change blocks. 
3 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)