Fixes some errors in the profile_update reminder.
[platal.git] / include / reminder / email_warning.inc.php
index f20cdb5..1b8f901 100644 (file)
@@ -28,13 +28,17 @@ class ReminderEmailWarning extends Reminder
         }
     }
 
-    protected function GetDisplayText() {}
-
-    public function Display(&$page)
+    public function template()
+    {
+        return 'reminder/email_warning.tpl';
+    }
+    public function title()
+    {
+        return "Problème avec ta redirections d'emails";
+    }
+    public function warning()
     {
-        header('Content-Type: text/html; charset=utf-8');
-        $page->changeTpl('reminder/email_warning.tpl', NO_SKIN);
-        $page->assign('baseurl', $this->GetBaseUrl());
+        return true;
     }
 
     public static function IsCandidate(User &$user, $candidate)