diff --git a/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php b/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php index b1a232a..cade322 100644 --- a/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php +++ b/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php @@ -265,6 +265,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher { function getUsersDocument($sUserName, $iDropDocsFolderID) { $oUser = $this->oUser; + $oDropDocsFolder = Folder::get($iDropDocsFolderID); $fullPath = $oDropDocsFolder->getFullPath() . '/' . $sUserName; @@ -337,7 +338,20 @@ class MyDropDocumentsPage extends KTStandardDispatcher { } } - $location = 'browse.php?fFolderId='.$iMyDocsFolderID; + $sUserName = (string)$this->oUser->getUserName(); + $subFolders = Folder::getByParentId($iDropDocsFolderID); + + $myDropFolder = false; + foreach ($subFolders as $sub){ + if($sub->getName() == $sUserName){ + $myDropFolder = $sub; + break; + } + } + + $iMyDropDocsFolderID = $myDropFolder->getID(); + + $location = 'browse.php?fFolderId='.$iMyDropDocsFolderID; $sReturnTable .= ''. ''. '
'. diff --git a/sql/mysql/install/data.sql b/sql/mysql/install/data.sql index 5cb4c0b..167cd18 100644 --- a/sql/mysql/install/data.sql +++ b/sql/mysql/install/data.sql @@ -1377,7 +1377,7 @@ INSERT INTO `scheduler_tasks` VALUES (9,'Refresh Index Statistics','search2/bin/cronIndexStats.php','',0,'1min','2007-10-01',NULL,0,'enabled'), (10,'Refresh Resource Dependancies','search2/bin/cronResources.php','',0,'1min','2007-10-01',NULL,0,'enabled'), (11,'Bulk Download Queue','bin/ajaxtasks/downloadTask.php','',0,'1min','2007-10-01',NULL,0,'system'), -(12,'Call Home','bin/system_info.php','',0,'daily','2009-10-01',NULL,0,'system'); +(12,'Call Home','bin/system_info.php','',1,'half_hourly','2009-10-01',NULL,0,'system'); /*!40000 ALTER TABLE `scheduler_tasks` ENABLE KEYS */; UNLOCK TABLES;