projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes sql error in payment listing.
[platal.git]
/
include
/
reminder
/
email_warning.inc.php
diff --git
a/include/reminder/email_warning.inc.php
b/include/reminder/email_warning.inc.php
index
4e6689f
..
6fc5c40
100644
(file)
--- a/
include/reminder/email_warning.inc.php
+++ b/
include/reminder/email_warning.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
09
Polytechnique.org *
+ * Copyright (C) 2003-20
11
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-28,17
+28,25
@@
class ReminderEmailWarning extends Reminder
}
}
}
}
- protected function GetDisplayText() {}
-
- public function Display(&$page)
+ public function template()
+ {
+ return 'reminder/email_warning.tpl';
+ }
+ public function title()
{
{
- header('Content-Type: text/html; charset=utf-8');
- $page->changeTpl('reminder/email_warning.tpl', NO_SKIN);
- $page->assign('baseurl', $this->GetBaseUrl());
+ return "Problème avec ta redirections d'emails";
+ }
+ public function warning()
+ {
+ return true;
}
}
- public static function IsCandidate(User
&$user
)
+ public static function IsCandidate(User
$user, $candidate
)
{
{
+ if (!$user->checkPerms(User::PERM_MAIL)) {
+ return false;
+ }
+
return count(S::v('mx_failures', array())) > 0;
}
}
return count(S::v('mx_failures', array())) > 0;
}
}