Project

General

Profile

Bug #19293 » rtehtmlarea_bugfix_9297.patch

Administrator Admin, 2008-09-05 03:49

View differences:

typo3/browse_links.php (copie de travail)
$this->content = '';
// look for alternativ mountpoints
$browser_readOnly = false;
switch((string)$this->mode) {
case 'rte':
case 'db':
......
$browserRenderObj = t3lib_div::getUserObj($classRef);
if (is_object($browserRenderObj) && method_exists($browserRenderObj, 'isValid') && method_exists($browserRenderObj, 'render')) {
if ($browserRenderObj->isValid($this->mode, $this)) {
$browserRenderObj->readOnly = $browser_readOnly;
$this->content.= $browserRenderObj->render($this->mode, $this);
$browserRendered = true;
break;
......
// if type was not rendered use default rendering functions
if(!$browserRendered) {
$this->browser = t3lib_div::makeInstance('browse_links');
$this->browser->readOnly = $browser_readOnly;
$this->browser->init();
if ($browser_readOnly) {
$this->browser->readOnly = true;
}
$modData = $GLOBALS['BE_USER']->getModuleData('browse_links.php', 'ses');
list($modData, $store) = $this->browser->processSessionData($modData);
$GLOBALS['BE_USER']->pushModuleData('browse_links.php', $modData);
// Output the correct content according to $this->mode
switch((string)$this->mode) {
case 'rte':
(1-1/3)