Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
ENH: refs #296 Fixed dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Ma committed Oct 18, 2011
1 parent ed221ea commit f9ad088
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,17 +262,18 @@ public function saveuploadedAction()

if(!empty($pathClient))
{
$tmpArray = split(';;', $pathClient);
$tmpArray = explode(';;', $pathClient);
foreach($tmpArray as $value)
{
if(strpos($value, $filename) !== false)
$tmpPathValue = explode('/', $value);
if(end($tmpPathValue) == $filename)
{
$pathClient = $value;
break;
}
}
}

$parent = $this->_getParam("parent");
$license = $this->_getParam("license");
if(!empty($path) && file_exists($path) && $file_size > 0)
Expand All @@ -289,7 +290,7 @@ public function saveuploadedAction()
{
$parentDao = $this->Folder->load($parent);
$this->getLogger()->info($pathClient);
$folders = split('/', $pathClient);
$folders = explode('/', $pathClient);
unset($folders[count($folders) - 1]);
foreach($folders as $folderName)
{
Expand Down

0 comments on commit f9ad088

Please sign in to comment.