projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some extra auth_user fixes.
[platal.git]
/
modules
/
profile
/
skills.inc.php
diff --git
a/modules/profile/skills.inc.php
b/modules/profile/skills.inc.php
index
8f0ec5e
..
668cbb3
100644
(file)
--- a/
modules/profile/skills.inc.php
+++ b/
modules/profile/skills.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 *
@@
-40,7
+40,7
@@
class ProfileSkill implements ProfileSetting
FROM {$this->table}_def AS s
INNER JOIN {$this->table}_ins AS i ON(s.id = i.{$this->skill_field})
WHERE i.uid = {?}",
FROM {$this->table}_def AS s
INNER JOIN {$this->table}_ins AS i ON(s.id = i.{$this->skill_field})
WHERE i.uid = {?}",
-
S::i('uid'
));
+
$page->pid(
));
while (list($sid, $text, $level) = $res->next()) {
$value[$sid] = array('text' => $text, 'level' => $level);
}
while (list($sid, $text, $level) = $res->next()) {
$value[$sid] = array('text' => $text, 'level' => $level);
}
@@
-66,14
+66,14
@@
class ProfileSkill implements ProfileSetting
{
XDB::execute("DELETE FROM {$this->table}_ins
WHERE uid = {?}",
{
XDB::execute("DELETE FROM {$this->table}_ins
WHERE uid = {?}",
-
S::i('uid'
));
+
$page->pid(
));
if (!count($value)) {
return;
}
foreach ($value as $id=>&$skill) {
XDB::execute("INSERT INTO {$this->table}_ins (uid, {$this->skill_field}, level)
VALUES ({?}, {?}, {?})",
if (!count($value)) {
return;
}
foreach ($value as $id=>&$skill) {
XDB::execute("INSERT INTO {$this->table}_ins (uid, {$this->skill_field}, level)
VALUES ({?}, {?}, {?})",
-
S::i('uid'
), $id, $skill['level']);
+
$page->pid(
), $id, $skill['level']);
}
}
}
}
}
}
@@
-89,7
+89,7
@@
class ProfileSkills extends ProfilePage
$this->settings['langues'] = new ProfileSkill('langues', 'lid', 'langue_fr');
}
$this->settings['langues'] = new ProfileSkill('langues', 'lid', 'langue_fr');
}
- public function _prepare(Pl
atal
Page &$page, $id)
+ public function _prepare(PlPage &$page, $id)
{
$page->assign('comp_list', XDB::iterator("SELECT id, text_fr, FIND_IN_SET('titre',flags) AS title
FROM competences_def"));
{
$page->assign('comp_list', XDB::iterator("SELECT id, text_fr, FIND_IN_SET('titre',flags) AS title
FROM competences_def"));