Delete unused line
This commit is contained in:
parent
030ea3feaa
commit
871e8a4906
1 changed files with 1 additions and 3 deletions
|
@ -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']);
|
||||||
|
|
Loading…
Reference in a new issue