projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update core
[platal.git]
/
modules
/
profile
/
decos.inc.php
diff --git
a/modules/profile/decos.inc.php
b/modules/profile/decos.inc.php
index
5c41316
..
e96e519
100644
(file)
--- a/
modules/profile/decos.inc.php
+++ b/
modules/profile/decos.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-201
0
Polytechnique.org *
+ * Copyright (C) 2003-201
1
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 *
@@
-21,7
+21,7
@@
class ProfileSettingDeco implements ProfileSetting
{
class ProfileSettingDeco implements ProfileSetting
{
- public function value(ProfilePage
&
$page, $field, $value, &$success)
+ public function value(ProfilePage $page, $field, $value, &$success)
{
$success = true;
if (is_null($value)) {
{
$success = true;
if (is_null($value)) {
@@
-50,7
+50,7
@@
class ProfileSettingDeco implements ProfileSetting
return $value;
}
return $value;
}
- public function save(ProfilePage
&
$page, $field, $value)
+ public function save(ProfilePage $page, $field, $value)
{
$orig =& $page->orig[$field];
{
$orig =& $page->orig[$field];
@@
-94,7
+94,7
@@
class ProfilePageDecos extends ProfilePage
{
protected $pg_template = 'profile/deco.tpl';
{
protected $pg_template = 'profile/deco.tpl';
- public function __construct(PlWizard
&
$wiz)
+ public function __construct(PlWizard $wiz)
{
parent::__construct($wiz);
$this->settings['medals'] = new ProfileSettingDeco();
{
parent::__construct($wiz);
$this->settings['medals'] = new ProfileSettingDeco();
@@
-121,7
+121,7
@@
class ProfilePageDecos extends ProfilePage
}
}
}
}
- public function _prepare(PlPage
&
$page, $id)
+ public function _prepare(PlPage $page, $id)
{
$res = XDB::iterator('SELECT *, FIND_IN_SET(\'validation\', flags) AS validate
FROM profile_medal_enum
{
$res = XDB::iterator('SELECT *, FIND_IN_SET(\'validation\', flags) AS validate
FROM profile_medal_enum