Skip to content

Commit

Permalink
fixup! Rename Homepage classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Oct 10, 2024
1 parent 9cb7e2b commit 73cd73b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions classes/Homepage/Scotland.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,9 @@ protected function getEditorialContent(&$data) {

protected function getRegionalList() {
global $THEUSER;

$mreg = [];

if ($THEUSER->isloggedin() && $THEUSER->postcode() != '' || $THEUSER->postcode_is_set()) {
return Member::getRegionalList($THEUSER->postcode, 4, 'SPE');
return \MySociety\TheyWorkForYou\Member::getRegionalList($THEUSER->postcode, 4, 'SPE');
}

return $mreg;
return [];
}
}

0 comments on commit 73cd73b

Please sign in to comment.