Skip to content
Extraits de code Groupes Projets
Valider ce54a83b rédigé par cerdic's avatar cerdic
Parcourir les fichiers

eviter un bug avec _TRI_ARTICLES_RUBRIQUE qui est cense n'etre utilise que pour les articles

parent 2afd3416
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -43,7 +43,7 @@ function inc_meme_rubrique_dist($id_rubrique, $id, $type, $order='', $limit=NULL ...@@ -43,7 +43,7 @@ function inc_meme_rubrique_dist($id_rubrique, $id, $type, $order='', $limit=NULL
if (!$n) return ''; if (!$n) return '';
if (!defined('_TRI_ARTICLES_RUBRIQUE')) define('_TRI_ARTICLES_RUBRIQUE', 'date DESC'); // surcharge possible dans mes_options.php if (!defined('_TRI_ARTICLES_RUBRIQUE')) define('_TRI_ARTICLES_RUBRIQUE', 'date DESC'); // surcharge possible dans mes_options.php
$order = ($order == '') ? _TRI_ARTICLES_RUBRIQUE : "$order DESC"; $order = ($order == '') ? ($type=='article'?_TRI_ARTICLES_RUBRIQUE:'date desc') : "$order DESC";
$voss = sql_select($select, $table, $where, '', "$order", $limit); $voss = sql_select($select, $table, $where, '', "$order", $limit);
$limit = $n - $limit; $limit = $n - $limit;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter