X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fpage.inc.php;h=da367174f7210bf46a1e863022da5ddfbaa86c08;hb=4e7bf1e01f3896d22bea3e23abf4cd7db2c12754;hp=9a12f3c6a1356d6defa3d528693c5e1e40be7ae2;hpb=be638e733bce413df4324d985297d9a4d94dcbca;p=platal.git diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index 9a12f3c..da36717 100644 --- 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]) { - register_profile_update($profile->id(), $field); + WatchProfileUpdate::register($this->profile, $field); } } $this->_saveData(); // Update the last modification date - XDB::execute('REPLACE INTO user_changes - SET user_id = {?}', $profile->id()); - if (!S::suid()) { - register_watch_op($profile->id(), WATCH_FICHE); - } + XDB::execute('UPDATE profiles + SET last_change = NOW() + WHERE pid = {?}', $this->pid()); global $platal; S::logger()->log('profil', $platal->pl_self(2)); }