Error #435 -> Cambiar el nombre a 'DroppedDocuments'

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/trunk@10 eb19766c-00d9-a042-a3a0-45cb8ec72764
This commit is contained in:
David Arranz 2010-09-12 14:24:28 +00:00
parent 73c93a1897
commit addcc21b40
2 changed files with 7 additions and 4 deletions

View File

@ -41,6 +41,9 @@
// 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;

View File

@ -75,7 +75,7 @@ class MyDropDocumentsPage extends KTStandardDispatcher {
// Check for the DropDocuments folder in root
if(!Folder::FolderExistsName('DroppedDocuments', $iRootID))
if(!Folder::FolderExistsName(DROPPED_DOCUMENTS_FOLDER, $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('DroppedDocuments');
$iDropDocsFolderID = $this->getFolderID(DROPPED_DOCUMENTS_FOLDER);
// 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('/DroppedDocuments');
$dropDocsFolder = $root->get_folder_by_name('/'.DROPPED_DOCUMENTS_FOLDER);
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('DroppedDocuments');
$dropDocsFolder = $root->add_folder(DROPPED_DOCUMENTS_FOLDER);
if(PEAR::isError($dropDocsFolder)){
$default->log->debug('MyDropDocuments: could not create DroppedDocuments folder '.$dropDocsFolder->getMessage());