X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Freminder.inc.php;h=e11711a0df8afa8e0232de20fe6a4c5bc362aa6c;hb=5aed580a3a092b460ecfa5ea398c822b9aa904da;hp=cede6170c162d39a6b29ffff8408c0db7a3c5238;hpb=27531a1312c2ab7134deffa169f72907e4edfeb8;p=platal.git diff --git a/include/reminder.inc.php b/include/reminder.inc.php index cede617..e11711a 100644 --- a/include/reminder.inc.php +++ b/include/reminder.inc.php @@ -1,6 +1,6 @@ 0 ? time() + $next_ask * 24 * 60 * 60 : null)); } @@ -105,7 +105,7 @@ abstract class Reminder // has been taken into account. public function NotifiesAction(&$page) { - header('Content-Type: text/html; charset=utf-8'); + pl_content_headers("text/html"); $page->changeTpl('reminder/notification.tpl', NO_SKIN); $page->assign('previous_reminder', $this->title()); } @@ -114,7 +114,7 @@ abstract class Reminder // when the reminder is the only output of a page. public function DisplayStandalone(&$page, $previous_reminder = null) { - header('Content-Type: text/html; charset=utf-8'); + pl_content_headers("text/html"); $page->changeTpl('reminder/base.tpl', NO_SKIN); $this->Prepare($page); if ($previous_reminder) { @@ -153,12 +153,12 @@ abstract class Reminder // Static status update methods ------------------------------------------- - // Marks the candidate reminder as having been accepted for user |user_id|. + // Marks the candidate reminder as having been accepted for user |uid|. // It is intended to be used when a reminder box has been bypassed, and when // it should behave as if the user had clicked on 'yes'. - protected static function MarkCandidateAsAccepted($user_id, $candidate) + protected static function MarkCandidateAsAccepted($uid, $candidate) { - Reminder::UpdateStatus($user_id, $candidate['type_id'], + Reminder::UpdateStatus($uid, $candidate['type_id'], 'yes', $candidate['remind_delay_yes']); }