X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fpage.inc.php;h=da367174f7210bf46a1e863022da5ddfbaa86c08;hb=0001ba7a34dc3b535407cb1b961781c3c69c0ccd;hp=cd9d38c6f2b24abbe5634bdaa6f9c152d325400d;hpb=111b27363692fc4070acaebd1fb380572f512036;p=platal.git diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index cd9d38c..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($this->pid(), $field); + WatchProfileUpdate::register($this->profile, $field); } } $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)); }