From 8055eff63c7886b710547dbc059e3d1162b100f8 Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Sat, 13 Mar 2010 11:13:37 +0000
Subject: [PATCH] report manquant

---
 ecrire/inc/utils.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php
index 3ad85e6db1..2063a52d36 100644
--- a/ecrire/inc/utils.php
+++ b/ecrire/inc/utils.php
@@ -754,6 +754,10 @@ function find_in_path ($file, $dirname='', $include=false) {
 	return $GLOBALS['path_files'][$GLOBALS['path_sig']][$dirname][$file] = $GLOBALS['path_files'][$GLOBALS['path_sig']][''][$dirname . $file] = false;
 }
 
+function clear_path_cache(){
+	$GLOBALS['path_files'] = array();
+	spip_unlink(_CACHE_CHEMIN);
+}
 function load_path_cache(){
 	// charger le path des plugins
 	if (@is_readable(_CACHE_PLUGINS_PATH)){
-- 
GitLab