From 73ab0ceac62ce41edfb8d60cbfba12e6edb2ce55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Fri, 1 Jan 2016 14:25:03 +0100 Subject: [PATCH] Fixed: comment nextprev, and replaced hardcoded strings with constants. --- e107_handlers/comment_class.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/e107_handlers/comment_class.php b/e107_handlers/comment_class.php index 142d76ca1..c3e330041 100644 --- a/e107_handlers/comment_class.php +++ b/e107_handlers/comment_class.php @@ -1204,14 +1204,12 @@ class comment //$from = $from + $this->commentsPerPage; - // from calculations are done by eNav() js. - return " - Previous - - Next - - "; - + // from calculations are done by eNav() js. + if($this->totalComments > $this->commentsPerPage) + { + return "" . LAN_PREVIOUS . " + " . LAN_NEXT . ""; + } }