- parent::__construct($_user, true, 'orange');
- $this->promo_sortie = $_sortie;
- $res = XDB::query("SELECT promo FROM auth_user_md5 WHERE user_id = {?}", $_user->id());
+ parent::__construct($_user, $_profile, true, 'orange');
+ $this->newGradYear = $_newGradYear;
+ $res = XDB::query("SELECT entry_year, grad_year
+ FROM profile_education
+ WHERE pid = {?} AND FIND_IN_SET('primary', flags)",
+ $this->profile->id());
+ $years = $res->fetchOneRow();
+ $this->entryYear = $years[0];
+ $this->oldGradYear = $years[1];