diff --git a/make-council-pages.sh b/make-council-pages.sh index c821993..e694f7c 100755 --- a/make-council-pages.sh +++ b/make-council-pages.sh @@ -4,7 +4,7 @@ # The folder containing data for each council. # Includes the list of candidates and any media. -DATA_PATH="../spl-data" +DATA_PATH="../spl-data/federal_2025" # Controls the flags that are passed to every usage of the wp command. #WP_FLAGS="--allow-root --path=/var/www/html" diff --git a/php-template/template.php b/php-template/template.php index 3d794dc..2753b19 100644 --- a/php-template/template.php +++ b/php-template/template.php @@ -35,12 +35,12 @@ if (isset($config["survey"])) { 1) { - $wardsDescription = $config['councilName'] . " is divided into " . $wardCount . " wards:"; + $wardsDescription = $config['divisionName'] . " is divided into " . $wardCount . " wards:"; } else { - $wardsDescription = $config['councilName'] . " is unsubdivided and does not contain any wards."; + $wardsDescription = $config['divisionName'] . " is unsubdivided and does not contain any wards."; } ?> @@ -106,7 +106,7 @@ if (isset($config["survey"])) { $groupNames = $config['groupNames']; $propertyOnCandidate = 'Group'; } else { - $groupNames = $config['wardNames']; + $groupNames = ['Fixme']; // $config['wardNames']; $propertyOnCandidate = 'Ward'; } ?>