Skip to content

Commit

Permalink
Compare slugified parties
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Feb 23, 2024
1 parent ae6b735 commit 479832b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -146,7 +146,7 @@

<?php elseif (count($policyPositions->positions) > 0 ): ?>
<?php if (count($party_positions) && $party_member_count > 1) { ?>
<?php if ($current_party_comparison <> $comparison_party){ ?>
<?php if (slugify($current_party_comparison) <> slugify($comparison_party)){ ?>
<p>
<?= $full_name ?> is a <?= $party ?> MP, but has changed parties or become independent.
</p>
Expand Down
2 changes: 1 addition & 1 deletion www/includes/easyparliament/templates/html/mp/votes.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<?php include('_stale_data_panel.php'); ?>

<?php if ($current_party_comparison <> $data["comparison_party"]): ?>
<?php if (slugify($current_party_comparison) <> slugify($data["comparison_party"])): ?>
<?php include('_cross_party_mp_panel.php'); ?>
<?php endif; ?>

Expand Down

0 comments on commit 479832b

Please sign in to comment.