projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/platal-0.10.0'
[platal.git]
/
include
/
validations
/
paiements.inc.php
diff --git
a/include/validations/paiements.inc.php
b/include/validations/paiements.inc.php
index
e0eca22
..
bb3afe4
100644
(file)
--- a/
include/validations/paiements.inc.php
+++ b/
include/validations/paiements.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
8
Polytechnique.org *
+ * Copyright (C) 2003-200
9
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 *
@@
-44,11
+44,11
@@
Si le télépaiement n'est pas lié à un groupe ou supérieur à 51 euros, lais
// }}}
// {{{ constructor
// }}}
// {{{ constructor
- public function __construct(
$_uid
, $_intitule, $_site, $_montant, $_msg,
+ public function __construct(
User &$_user
, $_intitule, $_site, $_montant, $_msg,
$_montantmin=0, $_montantmax=999, $_asso_id = 0,
$_evt = 0, $_stamp=0)
{
$_montantmin=0, $_montantmax=999, $_asso_id = 0,
$_evt = 0, $_stamp=0)
{
- parent::__construct($_u
id
, false, 'paiements', $_stamp);
+ parent::__construct($_u
ser
, false, 'paiements', $_stamp);
$this->titre = $_intitule;
$this->site = $_site;
$this->titre = $_intitule;
$this->site = $_site;
@@
-165,7
+165,6
@@
Si le télépaiement n'est pas lié à un groupe ou supérieur à 51 euros, lais
public function commit()
{
public function commit()
{
- global $globals;
$res = XDB::query("SELECT MAX(id) FROM paiement.paiements");
$id = $res->fetchOneCell()+1;
$ret = XDB::execute("INSERT INTO paiement.paiements VALUES
$res = XDB::query("SELECT MAX(id) FROM paiement.paiements");
$id = $res->fetchOneCell()+1;
$ret = XDB::execute("INSERT INTO paiement.paiements VALUES
@@
-175,7
+174,7
@@
Si le télépaiement n'est pas lié à un groupe ou supérieur à 51 euros, lais
",
$id, $this->titre, $this->site,
$this->montant, $this->montant_min, $this->montant_max,
",
$id, $this->titre, $this->site,
$this->montant, $this->montant_min, $this->montant_max,
- $this->
bestalias."@".$globals->mail->domain
, $this->msg_reponse, $this->asso_id);
+ $this->
user->bestEmail()
, $this->msg_reponse, $this->asso_id);
if ($this->asso_id && $this->evt) {
XDB::execute("UPDATE groupex.evenements
SET paiement_id = {?}
if ($this->asso_id && $this->evt) {
XDB::execute("UPDATE groupex.evenements
SET paiement_id = {?}