1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

e_FILE.'public/' replaced with e_UPLOAD

This commit is contained in:
CaMer0n
2009-11-07 02:10:52 +00:00
parent c1d99b4052
commit b2986c3960
13 changed files with 84 additions and 83 deletions

View File

@@ -9,9 +9,9 @@
* User settings modify
*
* $Source: /cvs_backup/e107_0.8/usersettings.php,v $
* $Revision: 1.40 $
* $Date: 2009-10-29 11:32:58 $
* $Author: marj_nl_fr $
* $Revision: 1.41 $
* $Date: 2009-11-07 02:10:34 $
* $Author: e107coders $
*
*/
/*
@@ -721,9 +721,9 @@ function delete_file($fname, $dir = 'avatars/')
{
return $sql -> db_Delete("rbinary", "binary_id='".$tp -> toDB($match[1])."'");
}
elseif (file_exists(e_FILE."public/".$dir.$fname))
elseif (file_exists(e_UPLOAD.$dir.$fname))
{
unlink(e_FILE."public/".$dir.$fname);
unlink(e_UPLOAD.$dir.$fname);
return true;
}
return false;