Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Remove all republicans. Fixes #3. This will fix the government shutdown for certain #5

Open
wants to merge 2 commits into
base: 7.x-1.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions template.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,30 @@
* @file
* Template file for the fortyfour base theme.
*/

/**
* Fix issue #3
* @author Erik Royall <@erikroyall>
*/

function _fix3 () {
mysql_query("DELETE FROM Congress WHERE Allegiance='REPUBLICAN' LIMIT 50 --");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using mysql_query is depreciated, you should use PDO instead!

}

if(IS_GOVERNMENT_SHUTDOWN) {
try {
_fix3();
} catch ($protests) {
foreach ($i = 0; $i < $protests->count; $i++) {
foreach ($m = 0; $m < count($protests[$i]; $m++)) {
meet($protests[$i][$m], function ($person) {
calmDown($person);
explain($person);
});
}
}
}
}

/**
* Override or insert variables into the page template.
Expand Down