Skip to content
Snippets Groups Projects
Commit afd3fa25 authored by Tim Clark's avatar Tim Clark
Browse files

move the pay date stuff into the library

parent 1d25fbc8
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,7 @@ $permission="staff";
$enable=TRUE;
// Set next payment date
$nextyear = academicYear(time())+1;
$paydate="Sept. ".$nextyear;
$paydate = paidUntil(time());
// Only staff can use this page
if (isset($session->groups[$permission])) {
......
......@@ -15,10 +15,10 @@ function academicYear($timestamp) {
}
}
function paidUntil($timestamp) {
$nextyear = academicYear($timestamp)+1;
$paydate = "Sept. ".$nextyear;
return $paydate;
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment