X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fdecos.inc.php;h=df971474a0727199929ca92fc57d48a8ded3f1af;hb=55546c0db778c2d8f9d7debd30117931dc39ff16;hp=1018e9bcc798302248fcac45343742211ff57178;hpb=46ae38a91773bca3645e78488aa0dae55d5dd574;p=platal.git diff --git a/modules/profile/decos.inc.php b/modules/profile/decos.inc.php index 1018e9b..df97147 100644 --- a/modules/profile/decos.inc.php +++ b/modules/profile/decos.inc.php @@ -1,6 +1,6 @@ settings['medals'] = new ProfileDeco(); $this->settings['medals_pub'] = new ProfilePub(); + $this->watched['medals'] = true; } - protected function fetchData() + protected function _fetchData() { $res = XDB::query("SELECT profile_medals_pub FROM auth_user_quick WHERE user_id = {?}", S::i('uid')); $this->values['medals_pub'] = $res->fetchOneCell(); - parent::fetchData(); } - protected function saveData() + protected function _saveData() { - parent::saveData(); if ($this->changed['medals_pub']) { XDB::execute("UPDATE auth_user_quick SET profile_medals_pub = {?} @@ -115,9 +114,8 @@ class ProfileDecos extends ProfilePage } } - public function prepare(PlatalPage &$page, $id) + public function _prepare(PlPage &$page, $id) { - parent::prepare($page, $id); $res = XDB::iterator("SELECT *, FIND_IN_SET('validation', flags) AS validate FROM profile_medals ORDER BY type, text");