Toujours utiliser la class action pour supprimer des fichiers

This commit is contained in:
Nahuel Angelinetti 2013-10-21 09:23:44 +00:00
parent 18b3f91cc7
commit c8f59de87a
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<?php
><?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
@ -676,12 +676,12 @@ class m_aws {
* @access private
*/
function _delconf($hostname) {
global $err;
global $err,$action;
if (!preg_match('/^[._a-z0-9-]*$/', $hostname)){
$err->raise("aws",_("Hostname is incorrect"));
return false;
}
@unlink($this->CONFDIR."/awstats.".$hostname.".conf");
$action->del($this->CONFDIR. DIRECTORY_SEPARATOR . "awstats.".$hostname.".conf");
}