[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / prive / objets / liste / articles_fonctions.php
index 14f66dc..cd5dd1f 100644 (file)
@@ -3,14 +3,16 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2017                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
  *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
 \***************************************************************************/
 
-if (!defined('_ECRIRE_INC_VERSION')) return;
+if (!defined('_ECRIRE_INC_VERSION')) {
+       return;
+}
 
 function defaut_tri_defined($defaut) {
        if (!defined('_TRI_ARTICLES_RUBRIQUE')) {
@@ -38,9 +40,11 @@ function defaut_tri_defined($defaut) {
        return $tri;
 }
 
-function defaut_tri_par($par, $defaut){
-       if (!defined('_TRI_ARTICLES_RUBRIQUE'))
+function defaut_tri_par($par, $defaut) {
+       if (!defined('_TRI_ARTICLES_RUBRIQUE')) {
                return $par;
+       }
        $par = array_keys($defaut);
+
        return reset($par);
-}
\ No newline at end of file
+}