X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Freminder.inc.php;h=72b987d26bdc6f30320d303fc70655ca44b4bff1;hb=c9910f7559bb0cfd787b4fb73f864000f28e38cc;hp=9cf399da76adba76f082778b7b0163d77b045fc0;hpb=a245a3e14efde886a8a92307c0066f2caa2d8710;p=platal.git diff --git a/include/reminder.inc.php b/include/reminder.inc.php index 9cf399d..72b987d 100644 --- a/include/reminder.inc.php +++ b/include/reminder.inc.php @@ -1,6 +1,6 @@ user = &$user; @@ -103,7 +103,7 @@ abstract class Reminder // Displays a reduced version of the reminder and notifies that the action // has been taken into account. - public function NotifiesAction(&$page) + public function NotifiesAction($page) { pl_content_headers("text/html"); $page->changeTpl('reminder/notification.tpl', NO_SKIN); @@ -112,7 +112,7 @@ abstract class Reminder // Displays the reminder as a standalone html snippet. It should be used // when the reminder is the only output of a page. - public function DisplayStandalone(&$page, $previous_reminder = null) + public function DisplayStandalone($page, $previous_reminder = null) { pl_content_headers("text/html"); $page->changeTpl('reminder/base.tpl', NO_SKIN); @@ -123,7 +123,7 @@ abstract class Reminder } // Prepares the display by assigning template variables. - public function Prepare(&$page) + public function Prepare($page) { $page->assign_by_ref('reminder', $this); } @@ -165,7 +165,7 @@ abstract class Reminder // Static factories ------------------------------------------------------- // Returns a chosen class using the user data from |user|, and from the database. - public static function GetCandidateReminder(User &$user) + public static function GetCandidateReminder(User $user) { $res = XDB::query('SELECT rt.*, r.status, r.remind_last FROM reminder_type AS rt @@ -194,7 +194,7 @@ abstract class Reminder // Returns an instantiation of the reminder class which name is |name|, using // user data from |user|, and from the database. - public static function GetByName(User &$user, $name) + public static function GetByName(User $user, $name) { if (!($class = self::GetClassName($name))) { return null;