| @@ 529-532 (lines=4) @@ | ||
| 526 | $pageList = $searchObj->getTreeList($pageId, $recursionLevel, 0, $perms_clause); |
|
| 527 | } else { |
|
| 528 | $mountPoints = $GLOBALS['BE_USER']->uc['pageTree_temporaryMountPoint']; |
|
| 529 | if (!is_array($mountPoints) || empty($mountPoints)) { |
|
| 530 | $mountPoints = array_map('intval', $GLOBALS['BE_USER']->returnWebmounts()); |
|
| 531 | $mountPoints = array_unique($mountPoints); |
|
| 532 | } |
|
| 533 | $newList = []; |
|
| 534 | foreach ($mountPoints as $mountPoint) { |
|
| 535 | $newList[] = $searchObj->getTreeList($mountPoint, $recursionLevel, 0, $perms_clause); |
|
| @@ 204-209 (lines=6) @@ | ||
| 201 | } |
|
| 202 | // check no temporary mountpoint is used |
|
| 203 | $mountPoints = (int)$GLOBALS['BE_USER']->uc['pageTree_temporaryMountPoint']; |
|
| 204 | if (!$mountPoints) { |
|
| 205 | $mountPoints = array_map('intval', $GLOBALS['BE_USER']->returnWebmounts()); |
|
| 206 | $mountPoints = array_unique($mountPoints); |
|
| 207 | } else { |
|
| 208 | $mountPoints = [$mountPoints]; |
|
| 209 | } |
|
| 210 | $isNumericSearchFilter = is_numeric($searchFilter) && $searchFilter > 0; |
|
| 211 | $searchFilterQuoted = preg_quote($searchFilter, '/'); |
|
| 212 | $nodeId = (int)$node->getId(); |
|