Merge remote branch 'origin/platal-1.0.0'
[platal.git] / modules / reminder.php
index d35ef0c..6829ed4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2009 Polytechnique.org                              *
+ *  Copyright (C) 2003-2010 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -44,10 +44,12 @@ class ReminderModule extends PLModule
         // displayed.
         $reminder->HandleAction($action);
 
+        $previous_reminder = $reminder->title();
+
         if (($new_reminder = Reminder::GetCandidateReminder($user))) {
-            $new_reminder->DisplayStandalone($page);
+            $new_reminder->DisplayStandalone($page, $previous_reminder);
         } else {
-            exit;
+            $reminder->NotifiesAction($page);
         }
     }
 }