From b2f16d33c4aff7f0e0c3a03f836959b97f5124fc Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Sat, 8 Oct 2005 16:16:28 +0000
Subject: [PATCH] pas de creation de mot-cle en passant par la fenetre des
 admins restreints

---
 ecrire/inc_mots.php3 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/ecrire/inc_mots.php3 b/ecrire/inc_mots.php3
index 2c0a36908f..6318a4ea09 100644
--- a/ecrire/inc_mots.php3
+++ b/ecrire/inc_mots.php3
@@ -107,7 +107,7 @@ function mots_ressemblants($mot, $table_mots, $table_ids='') {
  */
 
 function formulaire_mots($table, $id_objet, $nouv_mot, $supp_mot, $cherche_mot, $flag_editable) {
-	global $connect_statut, $options;
+  global $connect_statut, $connect_toutes_rubriques, $options;
 	global $spip_lang_rtl, $spip_lang_right;
 
 	$select_groupe = $GLOBALS['select_groupe'];
@@ -233,7 +233,8 @@ function formulaire_mots($table, $id_objet, $nouv_mot, $supp_mot, $cherche_mot,
 			}
 		}
 
-		if ($GLOBALS['connect_statut'] == '0minirezo') {
+		if ($GLOBALS['connect_statut'] == '0minirezo'
+		     AND $connect_toutes_rubriques ) {
 			echo "<div style='width: 200px;'>";
 			$retour = urlencode($GLOBALS['clean_link']->getUrl());
 			$titre = urlencode($cherche_mot);
@@ -521,7 +522,7 @@ function formulaire_mots($table, $id_objet, $nouv_mot, $supp_mot, $cherche_mot,
 			}
 		}
 		
-		if ($connect_statut == '0minirezo' AND $flag_editable AND $options == "avancees") {
+		if ($connect_statut == '0minirezo' AND $flag_editable AND $options == "avancees" AND $connect_toutes_rubriques) {
 			echo "<tr><td></td><td colspan='2'>";
 			echo "<div style='width: 200px;'>";
 			$retour = urlencode($GLOBALS['clean_link']->getUrl());
-- 
GitLab