From d5222f92a9aba5ac641def7f82ca97be9fe4b72e Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Wed, 21 Jun 2006 21:20:50 +0000
Subject: [PATCH] oups deux gros bug se neutralisent ... (piif)

---
 ecrire/inc/plugin.php | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/ecrire/inc/plugin.php b/ecrire/inc/plugin.php
index d58718c9b9..60ed74b5b1 100644
--- a/ecrire/inc/plugin.php
+++ b/ecrire/inc/plugin.php
@@ -23,9 +23,8 @@ include_spip('inc/meta');
 function liste_plugin_files(){
 	$plugin_files=array();
 	foreach (preg_files(_DIR_PLUGINS, '/plugin[.]xml$') as $plugin) {
-		$infos = plugin_get_infos($file);
-		if (isset($infos['nom']) && isset($infos['version'])
-		&& isset($infos['prefix']))
+		$infos = plugin_get_infos(dirname($plugin));
+		if (!isset($infos['erreur']))
 			$plugin_files[]=substr(dirname($plugin), strlen(_DIR_PLUGINS));
 	}
 	sort($plugin_files);
-- 
GitLab