diff --git a/classes/Homepage.php b/classes/Homepage.php index 7b83e5ce29..852e025b7d 100644 --- a/classes/Homepage.php +++ b/classes/Homepage.php @@ -34,16 +34,11 @@ public function display() { $common = new Common; $dissolution = Dissolution::dates(); - // temp for 2024 election - $now = new \DateTime(); - $election_date = new \DateTime('2024-07-04 22:00:00'); - $data['debates'] = $this->getDebatesData(); $user = new User(); $data['mp_data'] = $user->getRep($this->cons_type, $this->mp_house); $data["commons_dissolved"] = isset($dissolution[1]); - $data["after_election"] = $now > $election_date; $data['regional'] = $this->getRegionalList(); $data['popular_searches'] = $common->getPopularSearches(); diff --git a/www/docs/postcode/index.php b/www/docs/postcode/index.php index b7c83d6afa..fdecaab71b 100644 --- a/www/docs/postcode/index.php +++ b/www/docs/postcode/index.php @@ -10,11 +10,6 @@ // handling to switch the GE message based either on time or a query string -$now = new DateTime(); -$election_date = new DateTime('2024-07-04 22:00:00'); - -$data['post_election_message'] = (($now > $election_date) || (get_http_var("post_election") == 1)); - $pc = get_http_var('pc'); if (!$pc) { postcode_error('Please supply a postcode!'); diff --git a/www/includes/easyparliament/templates/html/index.php b/www/includes/easyparliament/templates/html/index.php index 89ea47485b..aa48984822 100644 --- a/www/includes/easyparliament/templates/html/index.php +++ b/www/includes/easyparliament/templates/html/index.php @@ -20,11 +20,7 @@ - -