From 18b3f91cc76b3f36126eb04dfc6ce766132d75bf Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Mon, 21 Oct 2013 09:21:55 +0000 Subject: [PATCH] =?UTF-8?q?Supprimer=20le=20r=C3=A9pertoire=20en=20utilisa?= =?UTF-8?q?nt=20la=20nouvelle=20fonction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- awstats/bureau/class/m_aws.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awstats/bureau/class/m_aws.php b/awstats/bureau/class/m_aws.php index a4e989e4..472aede0 100644 --- a/awstats/bureau/class/m_aws.php +++ b/awstats/bureau/class/m_aws.php @@ -317,7 +317,7 @@ class m_aws { * @return string the domain name of the deleted statistic set, or FALSE if an error occurred */ function delete_stats($id) { - global $db,$err,$cuid; + global $db,$err,$cuid,$action; $err->log("aws","delete_stats",$id); $db->query("SELECT hostname FROM aws WHERE id='$id' and uid='$cuid';"); if (!$db->num_rows()) { @@ -329,7 +329,7 @@ class m_aws { $this->delete_allowed_login($id,1); $this->_delconf($hostname); $db->query("DELETE FROM aws WHERE id='$id'"); - system("rm ".$this->CACHEDIR."/$hostname/ -rf"); + $action->del($this->CACHEDIR. DIRECTORY_SEPARATOR . $hostname . DIRECTORY_SEPARATOR); return $hostname; }