Browse Source

#331 - correction du lasyloading

cobalt74 7 years ago
parent
commit
917504aac2
2 changed files with 3 additions and 3 deletions
  1. 2 2
      article.php
  2. 1 1
      common.php

+ 2 - 2
article.php

@@ -43,8 +43,8 @@ if($articleDisplayDate) $target .= MYSQL_PREFIX.'event.pubdate,';
 if($articleDisplayAuthor) $target .= MYSQL_PREFIX.'event.creator,';
 $target .= MYSQL_PREFIX.'event.id';
 
-$startArticle = $_['scroll']*$articlePerPages-$_['nblus'];
-($startArticle<0)?0:$startArticle;
+$startArticle = ($_['scroll']*$articlePerPages)-$_['nblus'];
+if ($startArticle < 0) $startArticle=0;
 $action = $_['action'];
 
 switch($action){

+ 1 - 1
common.php

@@ -6,7 +6,7 @@
  @description: Page incluse dans tous (ou presque) les fichiers du projet, inclus les entitées SQL et récupère/traite les variables de requetes
  */
 
-define('VERSION_NUMBER_CODE','1.6');
+define('VERSION_NUMBER_CODE','1.6.1');
 define('VERSION_NAME_CODE','Stable');
 
 /* ----------MAJ de la version du constant.php--------------------- */