Skip to content

Commit

Permalink
Remove ‘while’ from party comparison statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Feb 8, 2021
1 parent 51777a0 commit 9124cc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/PartyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function testMPPartyPolicyWherePartyMissingPositions()
$page = $this->fetch_page( array( 'pid' => 3, 'url' => '/mp/3/test_current-mp/test_westminster_constituency' ) );
$this->assertContains('Test Current-MP', $page);
$this->assertContains('is a A Party MP', $page);
$this->assertNotContains('while most A Party MPs voted', $page);
$this->assertNotContains('most A Party MPs voted', $page);
}

public function testMPPartyPolicyTextWhenAgrees()
Expand Down
2 changes: 1 addition & 1 deletion www/includes/easyparliament/templates/html/mp/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@

$key_vote = NULL;
$description = sprintf(
'%s <b>%s</b> %s, while most %s MPs <b>%s</b>.',
'%s <b>%s</b> %s; most %s MPs <b>%s</b>.',
$full_name,
$positions[$policy_id]['position'],
strip_tags($policies[$policy_id]),
Expand Down

0 comments on commit 9124cc4

Please sign in to comment.