1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 15:46:44 +02:00

Extra warnings/alerts added for possible upgrade issues.

This commit is contained in:
Cameron
2016-12-01 11:20:56 -08:00
parent ab26e0cb13
commit 59e97ba8dc
3 changed files with 39 additions and 3 deletions

View File

@@ -1301,7 +1301,10 @@ function update_706_to_800($type='')
{
if(!is_dir(e_MEDIA.$md))
{
mkdir(e_MEDIA.$md);
if(mkdir(e_MEDIA.$md)===false)
{
e107::getMessage()->addWarning("Unable to create ".e_MEDIA.$md.".");
}
}
}
}
@@ -1319,7 +1322,10 @@ function update_706_to_800($type='')
{
$apath = (strstr($av['path'],'public/')) ? e_AVATAR_UPLOAD : e_AVATAR_DEFAULT;
@rename($av['path'].$av['fname'], $apath. $av['fname']);
if(rename($av['path'].$av['fname'], $apath. $av['fname'])===false)
{
e107::getMessage()->addWarning("Unable to more ".$av['path'].$av['fname']." to ".$apath. $av['fname'].". Please move manually.");
}
}
}