From: Stéphane Jacob Date: Sat, 18 Sep 2010 16:13:15 +0000 (+0200) Subject: Prevents various warnings on profile edition. X-Git-Tag: xorg/1.0.1~174 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=cbbf5ac90978263b86068c83dc3ccdc82d75700d;p=platal.git Prevents various warnings on profile edition. Signed-off-by: Stéphane Jacob --- diff --git a/core b/core index 3c7bc7a..1290d41 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 3c7bc7a377e3d5422f61b92ddf69c4a953ad3d15 +Subproject commit 1290d4101fe07192886e205bf8c645219d94658e diff --git a/modules/profile/jobs.inc.php b/modules/profile/jobs.inc.php index 7bd470e..f0d30d7 100644 --- a/modules/profile/jobs.inc.php +++ b/modules/profile/jobs.inc.php @@ -138,7 +138,7 @@ class ProfileSettingJob implements ProfileSetting } else if ($job['name'] == '') { if ($job['description'] == '' && $job['w_url'] == '' && $job['w_address']['text'] == '' && $job['w_email'] == '' - && count($job['w_phone']) == 1 && $job['w_phone']['tel'] == '') { + && count($job['w_phone']) >= 1 && $job['w_phone'][0]['display'] == '') { array_splice($value, $key, 1); continue; } diff --git a/templates/include/emails.combobox.tpl b/templates/include/emails.combobox.tpl index f372537..f0b1067 100644 --- a/templates/include/emails.combobox.tpl +++ b/templates/include/emails.combobox.tpl @@ -78,8 +78,8 @@ {/if} - - + + {if $name neq "email"} diff --git a/templates/profile/general.edu.tpl b/templates/profile/general.edu.tpl index ec518f4..ccf59b0 100644 --- a/templates/profile/general.edu.tpl +++ b/templates/profile/general.edu.tpl @@ -60,7 +60,7 @@ Année d'obtention du diplôme : - (par exemple : 2008) diff --git a/templates/profile/general.searchname.tpl b/templates/profile/general.searchname.tpl index c341043..42157d3 100644 --- a/templates/profile/general.searchname.tpl +++ b/templates/profile/general.searchname.tpl @@ -20,7 +20,7 @@ {* *} {**************************************************************************} - + @@ -28,7 +28,7 @@ {if $sn.pub}{icon name="flag_green" title="site public"} {else}{icon name="flag_red" title="site privé"}{/if}   - {if $sn_type_list} + {if t($sn_type_list)} + {if t($sn.error)} class="error"{/if} size="25" onkeyup="updateNameDisplay({$isFemale});"/> {if $sn.has_particle} - Noms{if $validation} (validations en attente de modération){/if} + Noms{if t($validation)} (validations en attente de modération){/if} @@ -97,7 +97,7 @@ Promotion - {if !$promo_choice} + {if !t($promo_choice)} {$profile->promo()} {else} @@ -266,9 +266,9 @@ - {if $email_error} + {if t($email_error)} {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"} - {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=$email_error i="0"}{/if} + {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=false i="0"}{/if} Messageries, networking et sites web