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
/
medals.inc.php
diff --git
a/include/validations/medals.inc.php
b/include/validations/medals.inc.php
index
98d14d2
..
0bc892c
100644
(file)
--- a/
include/validations/medals.inc.php
+++ b/
include/validations/medals.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 *
@@
-31,10
+31,10
@@
class MedalReq extends Validate
// }}}
// {{{ constructor
// }}}
// {{{ constructor
- public function __construct(
$_uid
, $_idmedal, $_subidmedal, $_stamp=0)
+ public function __construct(
User &$_user
, $_idmedal, $_subidmedal, $_stamp=0)
{
{
- parent::__construct($_u
id
, false, 'medal', $_stamp);
- $this->mid
= $_idmedal;
+ parent::__construct($_u
ser
, false, 'medal', $_stamp);
+ $this->mid = $_idmedal;
$this->gid = $_subidmedal;
}
$this->gid = $_subidmedal;
}
@@
-101,10
+101,10
@@
class MedalReq extends Validate
public function commit ()
{
require_once 'notifs.inc.php';
public function commit ()
{
require_once 'notifs.inc.php';
- register_watch_op($this->u
id, WATCH_FICHE
, 'medals');
+ register_watch_op($this->u
ser->id(), WATCH_FICHE, ''
, 'medals');
return XDB::execute('REPLACE INTO profile_medals_sub
VALUES ({?}, {?}, {?})',
return XDB::execute('REPLACE INTO profile_medals_sub
VALUES ({?}, {?}, {?})',
- $this->u
id
, $this->mid, $this->gid);
+ $this->u
ser->id()
, $this->mid, $this->gid);
}
// }}}
}
// }}}