Delete unused line

This commit is contained in:
Miraty 2022-10-13 00:40:19 +02:00
parent 030ea3feaa
commit 871e8a4906

View file

@ -28,13 +28,11 @@ define("PAGE", basename(PAGE_ADDRESS, '.php'));
$pageMetadata = []; $pageMetadata = [];
function getPageInformations($pages, $pageElements) { function getPageInformations($pages, $pageElements) {
global $pageMetadata; global $pageMetadata;
if (!isset($pages['index']) OR $pageElements[0] === 'index') { if (!isset($pages['index']) OR $pageElements[0] === 'index')
return [ return [
'titles_lineage' => [$pages[$pageElements[0]]['title'] ?? false], 'titles_lineage' => [$pages[$pageElements[0]]['title'] ?? false],
'page_metadata' => $pages[$pageElements[0]] ?? NULL 'page_metadata' => $pages[$pageElements[0]] ?? NULL
]; ];
define("PAGE_METADATA", $pages[$pageElements[0]] ?? []);
}
$result = $pages['index']['title']; $result = $pages['index']['title'];
if (!isset($pageElements[1])) if (!isset($pageElements[1]))
unset($pages['index']); unset($pages['index']);