Bug #20696 » 0011446.patch
class.webpagetree.php (Arbeitskopie) | ||
---|---|---|
$this->wrapTitle($this->getTitleStr($v['row'],$titleLen),$v['row'],$v['bank'])."\n";
|
||
if(!$v['hasSub']) { $itemHTML .= '</div></li>'; }
|
||
if(!$v['hasSub'] || ($v['isRoot'] && !$v['isOpen'])) { $itemHTML .= '</div></li>'; }
|
||
// we have to remember if this is the last one
|
||
// on level X so the last child on level X+1 closes the <ul>-tag
|
||
... | ... | |
if (is_array($rootRec)) {
|
||
// In case it was swapped inside getRecord due to workspaces.
|
||
$uid = $rootRec['uid'];
|
||
$hasSub = ($this->getCount($uid) ? true : false);
|
||
// Add the root of the mount to ->tree
|
||
$this->tree[] = array('HTML'=>$firstHtml, 'row'=>$rootRec, 'bank'=>$this->bank, 'hasSub'=>true, 'invertedDepth'=>1000);
|
||
$this->tree[] = array('HTML'=>$firstHtml, 'row'=>$rootRec, 'bank'=>$this->bank, 'isRoot' => true, 'isOpen' => $isOpen, 'hasSub'=>$hasSub, 'invertedDepth'=>1000);
|
||
// If the mount is expanded, go down:
|
||
if ($isOpen) {
|