diff --git a/Classes/Service/BackendService.php b/Classes/Service/BackendService.php index a3cdbac5d372a08352784e97618c1ce8ffe35e5f..678d6551b70c39057b46d0a92c9515292eae3495 100644 --- a/Classes/Service/BackendService.php +++ b/Classes/Service/BackendService.php @@ -47,23 +47,15 @@ class BackendService { * @throws \InvalidArgumentException */ public static function getPages() { - $out = []; /** @var $databaseConnection DatabaseConnection */ $databaseConnection = $GLOBALS['TYPO3_DB']; $rows = $databaseConnection->exec_SELECTgetRows( - 'distinct pid', + '*', 'pages', - 'deleted = 0' + 'deleted = 0 AND is_siteroot = 1' ); - foreach ($rows as $row) { - $pageInfo = BackendUtility::readPageAccess($row['pid'], $GLOBALS['BE_USER']->getPagePermsClause(1)); - if ($pageInfo) { - $out[] = $pageInfo; - } - } - - return $out; + return $rows; } /** diff --git a/Resources/Private/Templates/Mail/Index.html b/Resources/Private/Templates/Mail/Index.html index 7da81d099056f9fd7e91d5e6f4205b067cabf384..d12104993edae3605b45d8f8ff4ed693be1f74bc 100644 --- a/Resources/Private/Templates/Mail/Index.html +++ b/Resources/Private/Templates/Mail/Index.html @@ -18,7 +18,7 @@ <td nowrap="nowrap" class="col-title"> <a href="#" onclick="sgMailGoToPage({page.uid}); return false;"> <sgm:backend.icon table="pages" row="{page}" clickMenu="0" /> - {page._thePathFull} + {page.title} </a> </td> </tr>