Notifies the sender when a moderated message to a ML is accepted (I forgot the text...
[platal.git] / modules / profile / decos.inc.php
index 85d2a86..31d68cd 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2008 Polytechnique.org                              *
+ *  Copyright (C) 2003-2009 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -78,6 +78,7 @@ class ProfileDeco implements ProfileSetting
             if (!isset($orig[$id]) || $orig[$id]['grade'] != $val['grade']) {
                 $req = new MedalReq(S::user(), $id, $val['grade']);
                 $req->submit();
+                sleep(1);
             }
         }
     }