diff --git a/config/dmsDefaults.php b/config/dmsDefaults.php index 2e4dab8..81fdf00 100644 --- a/config/dmsDefaults.php +++ b/config/dmsDefaults.php @@ -41,9 +41,6 @@ // stuff in the new installer section database upgrade fails without this global $default; -// traducir carpeta 'DroppedDocuments' -define('DROPPED_DOCUMENTS_FOLDER', 'Documentos personales'); - if (defined('DMS_DEFAULTS_INCLUDED')) { return; diff --git a/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php b/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php index 416b213..c65a0de 100644 --- a/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php +++ b/plugins/MyDropDocumentsPlugin/MyDropDocumentsPage.php @@ -75,7 +75,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher { // Check for the DropDocuments folder in root - if(!Folder::FolderExistsName(DROPPED_DOCUMENTS_FOLDER, $iRootID)) + if(!Folder::FolderExistsName('DroppedDocuments', $iRootID)) { // We need to be admin to create the folder and update its permissions $this->ktapi = new KTAPI(); @@ -92,7 +92,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher { } } - $iDropDocsFolderID = $this->getFolderID(DROPPED_DOCUMENTS_FOLDER); + $iDropDocsFolderID = $this->getFolderID('DroppedDocuments'); // Check for users folder if(!Folder::FolderExistsName($sUserName, $iDropDocsFolderID)) @@ -136,7 +136,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher { /* ** Get the Dropped Documents folder object and assign the user to the role */ // Get the DroppedDocuments folder - $dropDocsFolder = $root->get_folder_by_name('/'.DROPPED_DOCUMENTS_FOLDER); + $dropDocsFolder = $root->get_folder_by_name('/DroppedDocuments'); if(PEAR::isError($dropDocsFolder)){ $default->log->debug('MyDropDocuments: could not get DroppedDocuments folder '.$dropDocsFolder->getMessage()); @@ -208,7 +208,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher { } //Create dropdocuments folder - $dropDocsFolder = $root->add_folder(DROPPED_DOCUMENTS_FOLDER); + $dropDocsFolder = $root->add_folder('DroppedDocuments'); if(PEAR::isError($dropDocsFolder)){ $default->log->debug('MyDropDocuments: could not create DroppedDocuments folder '.$dropDocsFolder->getMessage());