projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start porting carnet to UserFilter.
[platal.git]
/
modules
/
profile
/
page.inc.php
diff --git
a/modules/profile/page.inc.php
b/modules/profile/page.inc.php
index
cd9d38c
..
da36717
100644
(file)
--- a/
modules/profile/page.inc.php
+++ b/
modules/profile/page.inc.php
@@
-347,17
+347,15
@@
abstract class ProfilePage implements PlWizardPage
$setting->save($this, $field, $this->values[$field]);
}
if ($this->changed[$field] && @$this->watched[$field]) {
$setting->save($this, $field, $this->values[$field]);
}
if ($this->changed[$field] && @$this->watched[$field]) {
-
register_profile_update($this->pid()
, $field);
+
WatchProfileUpdate::register($this->profile
, $field);
}
}
$this->_saveData();
// Update the last modification date
}
}
$this->_saveData();
// Update the last modification date
- XDB::execute('REPLACE INTO user_changes
- SET user_id = {?}', $this->pid());
- if (!S::suid()) {
- register_watch_op($this->pid(), WATCH_FICHE);
- }
+ XDB::execute('UPDATE profiles
+ SET last_change = NOW()
+ WHERE pid = {?}', $this->pid());
global $platal;
S::logger()->log('profil', $platal->pl_self(2));
}
global $platal;
S::logger()->log('profil', $platal->pl_self(2));
}