Project

General

Profile

Bug #22071 » 13445_v2.diff

Administrator Admin, 2010-02-06 13:49

View differences:

typo3/alt_db_navframe.php (working copy)
$this->pagetree->addField('nav_hide');
$this->pagetree->addField('nav_title');
$this->pagetree->addField('url');
$this->pagetree->mountSortField = $BE_USER->getTSConfigVal('options.pageTree.mountSortField');
// Temporary DB mounts:
$this->initializeTemporaryDBmount();
......
$flashText = '
<a href="' . htmlspecialchars(t3lib_div::linkThisScript(array('setTempDBmount' => 0))) . '">' .
$LANG->sl('LLL:EXT:lang/locallang_core.xml:labels.temporaryDBmount',1) .
'</a> <br />' .
'</a> <br />' .
$LANG->sl('LLL:EXT:lang/locallang_core.xml:labels.path',1) . ': <span title="' .
htmlspecialchars($this->active_tempMountPoint['_thePathFull']) . '">' .
htmlspecialchars($this->active_tempMountPoint['_thePathFull']) . '">' .
htmlspecialchars(t3lib_div::fixed_lgd_cs($this->active_tempMountPoint['_thePath'],-50)).
'</span>
';
......
t3lib_FlashMessage::INFO
);
$this->content.= $flashMessage->render();
}
typo3/class.webpagetree.php (working copy)
var $ext_alphasortNotinmenuPages;
var $ajaxStatus = false; // Indicates, whether the ajax call was successful, i.e. the requested page has been found
public $mountSortField;
/**
* Calls init functions
*
......
// Init done:
$titleLen = intval($this->BE_USER->uc['titleLen']);
$treeArr = array();
$mountSortField = $this->mountSortField ? $this->mountSortField : 'crdate';
// Traverse mounts:
foreach($this->MOUNTS as $idx => $uid) {
......
$uid = $rootRec['uid'];
// Add the root of the mount to ->tree
$this->tree[] = array('HTML'=>$firstHtml, 'row'=>$rootRec, 'bank'=>$this->bank, 'hasSub'=>true, 'invertedDepth'=>1000);
$this->tree[$rootRec[$mountSortField]] = array('HTML'=>$firstHtml, 'row'=>$rootRec, 'bank'=>$this->bank, 'hasSub'=>true, 'invertedDepth'=>1000);
// If the mount is expanded, go down:
if ($isOpen) {
......
$this->getTree($uid, 999, '', $rootRec['_SUBCSSCLASS']);
}
// Add tree:
ksort($treeArr);
$treeArr=array_merge($treeArr,$this->tree);
}
}
(2-2/2)