1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00
This commit is contained in:
CaMer0n
2009-11-18 10:16:50 +00:00
parent 06b2a7e711
commit 10effc2232

View File

@@ -9,8 +9,8 @@
* Image Administration Area * Image Administration Area
* *
* $Source: /cvs_backup/e107_0.8/e107_admin/image.php,v $ * $Source: /cvs_backup/e107_0.8/e107_admin/image.php,v $
* $Revision: 1.35 $ * $Revision: 1.36 $
* $Date: 2009-11-18 09:53:39 $ * $Date: 2009-11-18 10:16:50 $
* $Author: e107coders $ * $Author: e107coders $
* *
*/ */
@@ -346,7 +346,11 @@ class media_admin_ui extends e_admin_ui
// only one upload? Not sure what's the idea here // only one upload? Not sure what's the idea here
// we are currently creating one media item // we are currently creating one media item
rename(e_MEDIA.$oldpath, e_MEDIA.$newpath); if(!rename(e_MEDIA.$oldpath, e_MEDIA.$newpath))
{
$mes->add("Couldn't move file from ".$oldpath." to ".$newpath, E_MESSAGE_ERROR);
return FALSE;
};
return $upload_data; return $upload_data;
} }
@@ -378,7 +382,11 @@ class media_admin_ui extends e_admin_ui
if(!is_dir(e_MEDIA.$dir)) if(!is_dir(e_MEDIA.$dir))
{ {
mkdir(e_MEDIA.$dir, 0755); if(!mkdir(e_MEDIA.$dir, 0755))
{
$mes->add("Couldn't create folder ($dir).", E_MESSAGE_ERROR);
return FALSE;
};
} }
return $dir; return $dir;
} }