Commit aff1257e4fdb1089f8a5b0cc84df71f7a1bd44ed

Authored by Jarrett Jordaan
2 parents 219d4e66 33b20eaf

Merge branch 'edge' of git@github.com:ktgit/knowledgetree into edge

plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php
@@ -265,6 +265,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher { @@ -265,6 +265,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher {
265 function getUsersDocument($sUserName, $iDropDocsFolderID) 265 function getUsersDocument($sUserName, $iDropDocsFolderID)
266 { 266 {
267 $oUser = $this->oUser; 267 $oUser = $this->oUser;
  268 +
268 $oDropDocsFolder = Folder::get($iDropDocsFolderID); 269 $oDropDocsFolder = Folder::get($iDropDocsFolderID);
269 270
270 $fullPath = $oDropDocsFolder->getFullPath() . '/' . $sUserName; 271 $fullPath = $oDropDocsFolder->getFullPath() . '/' . $sUserName;
@@ -337,7 +338,20 @@ class MyDropDocumentsPage extends KTStandardDispatcher { @@ -337,7 +338,20 @@ class MyDropDocumentsPage extends KTStandardDispatcher {
337 } 338 }
338 } 339 }
339 340
340 - $location = 'browse.php?fFolderId='.$iMyDocsFolderID; 341 + $sUserName = (string)$this->oUser->getUserName();
  342 + $subFolders = Folder::getByParentId($iDropDocsFolderID);
  343 +
  344 + $myDropFolder = false;
  345 + foreach ($subFolders as $sub){
  346 + if($sub->getName() == $sUserName){
  347 + $myDropFolder = $sub;
  348 + break;
  349 + }
  350 + }
  351 +
  352 + $iMyDropDocsFolderID = $myDropFolder->getID();
  353 +
  354 + $location = 'browse.php?fFolderId='.$iMyDropDocsFolderID;
341 $sReturnTable .= '</tbody>'. 355 $sReturnTable .= '</tbody>'.
342 '</table>'. 356 '</table>'.
343 '<br>'. 357 '<br>'.
sql/mysql/install/data.sql
@@ -1377,7 +1377,7 @@ INSERT INTO `scheduler_tasks` VALUES @@ -1377,7 +1377,7 @@ INSERT INTO `scheduler_tasks` VALUES
1377 (9,'Refresh Index Statistics','search2/bin/cronIndexStats.php','',0,'1min','2007-10-01',NULL,0,'enabled'), 1377 (9,'Refresh Index Statistics','search2/bin/cronIndexStats.php','',0,'1min','2007-10-01',NULL,0,'enabled'),
1378 (10,'Refresh Resource Dependancies','search2/bin/cronResources.php','',0,'1min','2007-10-01',NULL,0,'enabled'), 1378 (10,'Refresh Resource Dependancies','search2/bin/cronResources.php','',0,'1min','2007-10-01',NULL,0,'enabled'),
1379 (11,'Bulk Download Queue','bin/ajaxtasks/downloadTask.php','',0,'1min','2007-10-01',NULL,0,'system'), 1379 (11,'Bulk Download Queue','bin/ajaxtasks/downloadTask.php','',0,'1min','2007-10-01',NULL,0,'system'),
1380 -(12,'Call Home','bin/system_info.php','',0,'daily','2009-10-01',NULL,0,'system'); 1380 +(12,'Call Home','bin/system_info.php','',1,'half_hourly','2009-10-01',NULL,0,'system');
1381 1381
1382 /*!40000 ALTER TABLE `scheduler_tasks` ENABLE KEYS */; 1382 /*!40000 ALTER TABLE `scheduler_tasks` ENABLE KEYS */;
1383 UNLOCK TABLES; 1383 UNLOCK TABLES;