X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Feducation.func.inc.php;h=3e036a91e99ed43a026f697ad6ddb906f65af1cf;hb=0230657978c214cded3256ecec59a97980f7d408;hp=9d2e2b732bbbd8dc13c0d46df7bbf625b3d37607;hpb=1dc71da137a384e771723b8a893539a7f5cc9fab;p=platal.git diff --git a/include/education.func.inc.php b/include/education.func.inc.php index 9d2e2b7..3e036a9 100644 --- a/include/education.func.inc.php +++ b/include/education.func.inc.php @@ -1,6 +1,6 @@ v('edu'); + if (!$params->has('sex')) { + $profile = $params->v('profile'); + $sex = $profile->isFemale(); + } else { + $sex = $params->b('sex'); + } + return education_fmt($edu['school_short'], $edu['school_url'], $edu['degree_short'], $edu['grad_year'], + $edu['field'], $edu['program'], $sex, $params->b('long')); } Platal::page()->register_function('education_fmt', '_education_fmt');