<?php
/***************************************************************************
- * Copyright (C) 2003-2006 Polytechnique.org *
+ * Copyright (C) 2003-2007 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
function _mail_body($isok)
{
if ($isok) {
- return " La décoration ".$this->medal_name()." que tu avais demandée vient d'être acceptée.";
+ return " La décoration ".$this->medal_name()." vient d'être ajoutée à ta fiche.";
} else {
return " La demande que tu avais faite pour la décoration ".$this->medal_name()." a été refusée.";
}
}
// }}}
+ // {{{ function submit()
+
+ function submit()
+ {
+ $res = XDB::query("SELECT FIND_IN_SET(flags, 'validation')
+ FROM profile_medals
+ WHERE id = {?}", $this->mid);
+ if ($res->fetchOneCell()) {
+ parent::submit();
+ } else {
+ $this->commit();
+ }
+ }
+
+ // }}}
// {{{ function commit()
function commit ()