~maj v3.0.19-->v3.0.21
[ptitvelo/web/www.git] / www / ecrire / inc / puce_statut.php
index 7560725..353c0a1 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2012                                                *
+ *  Copyright (c) 2001-2014                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -267,7 +267,8 @@ function puce_statut_changement_rapide($id, $statut, $id_rubrique, $type='articl
        $desc = lister_tables_objets_sql($table);
        if (!isset($desc['statut_textes_instituer']))
                return $inser_puce;
-
+       
+       include_spip('inc/autoriser');
        // cas ou l'on a un parent connu (devrait disparaitre au profit du second cas plus generique)
        if ($id_rubrique){
                if (!autoriser('publierdans', 'rubrique', $id_rubrique))
@@ -308,7 +309,7 @@ function puce_statut_changement_rapide($id, $statut, $id_rubrique, $type='articl
          $action = "if (!this.puce_loaded) { this.puce_loaded = true; prepare_selec_statut(this, '$nom', '$type', '$id', '$action'); }";
          $over = " onmouseover=\"$action\"";
 
-               $lang_dir = lang_dir(isset($GLOBALS['lang_objet']) ? $GLOBALS['lang_objet'] : "");
+               $lang_dir = lang_dir(lang_typo());
                return  "<span class='puce_objet $type' id='$nom$type$id' dir='$lang_dir'$over>"
                . $inser_puce
                . '</span>';