diff --git a/pledge-update/page_renderer.php b/pledge-update/page_renderer.php index f7ce2dc..cdced54 100644 --- a/pledge-update/page_renderer.php +++ b/pledge-update/page_renderer.php @@ -1,7 +1,7 @@ $candidate) { $councils[] = $candidate['Council']; + $lga_pages_unsort[] = basename($candidate['Path']); } $councils = array_unique($councils); asort($councils); +$lga_pages = []; +foreach ($councils as $key => $council) { + $lga_pages[$key] = $lga_pages_unsort[$key]; +} + //print_r($councils); -$pageContent = $renderer->renderPledgePage($councils, $pledgeCandidates); +$pageContent = $renderer->renderPledgePage($councils, $lga_pages, $pledgeCandidates); if ($pageContent === null) { exit(2); diff --git a/pledge-update/template.php b/pledge-update/template.php index 0e32c93..0b5c031 100644 --- a/pledge-update/template.php +++ b/pledge-update/template.php @@ -68,8 +68,8 @@ $councilCount = count($councils); $council): ?> - -