Project

General

Profile

Bug #23062 » 14952-opendocs_v2.patch

Administrator Admin, 2010-06-30 20:40

View differences:

typo3/alt_doc_nodoc.php (Arbeitskopie)
require('template.php');
$LANG->includeLLFile('EXT:lang/locallang_alt_doc.xml');
require_once(t3lib_extMgm::extPath('opendocs') . 'class.tx_opendocs.php');
if (t3lib_extMgm::isLoaded('taskcenter') && t3lib_extMgm::isLoaded('taskcenter_recent')) {
require_once(t3lib_extMgm::extPath('taskcenter').'task/class.mod_user_task.php');
require_once(t3lib_extMgm::extPath('taskcenter_recent').'class.tx_taskcenterrecent.php');
}
/**
* Script Class for the "No-doc" display; This shows most recently edited records.
*
......
$msg[]='<p>'.sprintf($LANG->getLL('noDocuments_msg2',1),implode(' ',$msg_2)).'</p><br />';
}
// If the task center is loaded and the module of recent documents is, then display the list of the most recently edited documents:
if ($BE_USER->check('modules','user_task') && t3lib_extMgm::isLoaded('taskcenter_recent')) {
$modObj = t3lib_div::makeInstance('tx_taskcenterrecent');
$modObj->backPath = $BACK_PATH;
$modObj->BE_USER = $BE_USER;
$modObj->perms_clause = $BE_USER->getPagePermsClause(1);
// Display the list of the most recently edited documents:
$modObj = t3lib_div::makeInstance('tx_opendocs');
$msg[] = '<p>' . $GLOBALS['LANG']->getLL('noDocuments_msg3', TRUE) . '</p><br />' . $modObj->renderMenu();
$msg[]='<p>'.$LANG->getLL('noDocuments_msg3',1).'</p><br />'.$modObj->_renderRecent();
}
// Adding the content:
$this->content.=$this->doc->section($LANG->getLL('noDocuments'),implode(' ',$msg),0,1);
}
(2-2/3)