Skip to content

Commit

Permalink
Revert "[SQL] - Pagination bug fix (see pull #80 and issue #79)"
Browse files Browse the repository at this point in the history
This reverts commit 8899e43.
  • Loading branch information
timovn committed Sep 11, 2016
1 parent 8899e43 commit 530284c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion inc/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// GENERAL
define('BLOGOTEXT_NAME', 'BlogoText');
define('BLOGOTEXT_SITE', 'http://lehollandaisvolant.net/blogotext/');
define('BLOGOTEXT_VERSION', '3.5.3.1');
define('BLOGOTEXT_VERSION', '3.5.2.0');
define('MINIMAL_PHP_REQUIRED_VERSION', '5.5');
define('BLOGOTEXT_UA', 'Mozilla/5.0 (Windows NT 10; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0');
mb_internal_encoding('UTF-8');
Expand Down
7 changes: 4 additions & 3 deletions inc/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function encart_commentaires() {
if (strlen($comment['bt_author']) >= 30) {
$comment['bt_author'] = mb_substr($comment['bt_author'], 0, 29).'';
}
// $listeLastComments .= '<li title="'.date_formate($comment['bt_id']).'"><b>'.$comment['bt_author'].'</b> '.$GLOBALS['lang']['sur'].' <b>'.$comment['article_title'].'</b><br/><a href="'.$comment['bt_link'].'">'.$comment['contenu_abbr'].'</a>'.'</li>'."\n";
$listeLastComments .= '<li title="'.date_formate($comment['bt_id']).'"><strong>'.$comment['bt_author'].' : </strong><a href="'.$comment['bt_link'].'">'.$comment['contenu_abbr'].'</a>'.'</li>'."\n";
}
$listeLastComments .= '</ul>'."\n";
Expand Down Expand Up @@ -210,11 +211,11 @@ function lien_pagination() {
if (!empty($qstring)){$qstring .= '&amp;';}

if (isset($_GET['tag'])){
$nb = (int)liste_elements_count("SELECT count(ID) AS nbr FROM tag WHERE bt_statut=1", array());
$nb = (int)liste_elements_count("SELECT count(ID) AS nbr FROM tag", array());
} else if (isset($_GET['mode']) && $_GET['mode'] == 'links'){
$nb = (int)liste_elements_count("SELECT count(ID) AS nbr FROM links WHERE bt_statut=1", array());
$nb = (int)liste_elements_count("SELECT count(ID) AS nbr FROM links", array());
} else {
$nb = (int)liste_elements_count("SELECT count(ID) AS nbr FROM articles WHERE bt_statut=1", array());
$nb = (int)liste_elements_count("SELECT count(ID) AS nbr FROM articles", array());
}

$lien_precede = '';
Expand Down

0 comments on commit 530284c

Please sign in to comment.