From: Pascal Corpet Date: Mon, 25 Oct 2010 22:35:45 +0000 (+0200) Subject: Fixes some PHP notice (debug & 4 != 0) X-Git-Tag: xorg/1.0.1~7 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=b66dc2be115ea07ed7ee09d0fb1280236483702a;p=platal.git Fixes some PHP notice (debug & 4 != 0) --- diff --git a/templates/carnet/mescontacts.tpl b/templates/carnet/mescontacts.tpl index d3231d2..06ffcad 100644 --- a/templates/carnet/mescontacts.tpl +++ b/templates/carnet/mescontacts.tpl @@ -47,7 +47,7 @@ Sur la page de résultats d'une recherche, tu peux ajouter un contact en cliquant sur {icon name=add}.

-{if $plset_count || $smarty.request.quick} +{if $plset_count || t($smarty.request.quick)}

Tu peux télécharger des informations sur tes contacts :

@@ -84,10 +84,10 @@
- {if $smarty.request.quick}{icon name=arrow_undo title='Annuler la recherche'}{/if} + {if t($smarty.request.quick)}{icon name=arrow_undo title='Annuler la recherche'}{/if}

diff --git a/templates/events/index.tpl b/templates/events/index.tpl index 83eb602..afb4ba9 100644 --- a/templates/events/index.tpl +++ b/templates/events/index.tpl @@ -20,14 +20,14 @@ {* *} {**************************************************************************} -{if $ask_naissance} +{if t($ask_naissance)} {include file='include/form_naissance.tpl'} {else}

-Bienvenue {$smarty.session.user->displayName()}{if $birthday} +Bienvenue {$smarty.session.user->displayName()}{if t($birthday)}  et joyeux anniversaire de la part de toute l'équipe ! {else}, {/if} @@ -35,13 +35,13 @@ Bienvenue {$smarty.session.user->displayName()}{if $birthday} {if $smarty.session.user->host}
- {if $birthday}T{else}t{/if}a connexion précédente date du + {if t($birthday)}T{else}t{/if}a connexion précédente date du {$smarty.session.user->lastlogin|date_format:"%x, %X"} depuis la machine {$smarty.session.user->host}.
{/if} -{if $reminder} +{if t($reminder)} {include file="reminder/base.tpl"} {else} {include file="include/tips.tpl" full=true} @@ -149,7 +149,7 @@ Bienvenue {$smarty.session.user->displayName()}{if $birthday} {if hasPerm('admin')} {icon name=page_edit title="Editer cet article"} {/if} - {icon name=cross title="Cacher cet article"} + {icon name=cross title="Cacher cet article"} {assign var="previd" value=$ev.id} diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index 83ee3aa..6e284eb 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -153,7 +153,7 @@ Profession : {if $job->company->url|default:$job->user_site}{$job->company->name}{else}{$job->company->name}{/if} - {if $job->subsubsector} ({$job->subsubsector}){/if}{if $job->description}
{$job->description}{/if} + {if $job->description}
{$job->description}{/if} {/if} diff --git a/templates/include/tips.tpl b/templates/include/tips.tpl index 32e2d58..efcc665 100644 --- a/templates/include/tips.tpl +++ b/templates/include/tips.tpl @@ -20,15 +20,17 @@ {* *} {**************************************************************************} -{if $tips} -{if $full} +{if t($tips)} +{if t($full)}
{/if} - {icon name=lightbulb} {if !$tips.special} + {icon name=lightbulb} {if !t($tips.special)} Astuce : {$tips.title} - {if hasPerm('admin') && !$tips.special && !$nochange} + {if hasPerm('admin') && !t($tips.special)} + {if !t($nochange)} {icon name="page_edit" title="Editer"} {/if} + {/if} {else} {$tips.titre} {/if} @@ -36,14 +38,14 @@ {tidy} {$tips.text|nl2br|smarty:nodefaults} {/tidy} - {if !$nochange} + {if !t($nochange)} {/if} -{if $full} +{if t($full)}
{/if} {/if} diff --git a/templates/profile/jobs.job.tpl b/templates/profile/jobs.job.tpl index e47caee..112b0da 100644 --- a/templates/profile/jobs.job.tpl +++ b/templates/profile/jobs.job.tpl @@ -57,12 +57,12 @@ Entreprise n°{$i+1} : {if $hiddenjob} (masquée) - {if !$job.tmp_name} + {if !t($job.tmp_name)} {/if} {else} - {if $job.tmp_name}{$job.tmp_name} (en cours de validation){else} - (en cours de validation){else} + {/if} {/if} @@ -71,7 +71,7 @@ - {if !$job.tmp_name && !$job.name} + {if !t($job.tmp_name)}{if !t($job.name)} Si l'entreprise ne figure pas dans la liste, @@ -114,7 +114,7 @@ - {/if} + {/if}{/if} Place dans l'entreprise @@ -150,14 +150,14 @@ Description - Page perso - @@ -184,7 +184,7 @@ {else} {include file="include/emails.combobox.tpl" name=$jobpref|cat:'[w_email]' val=$job.w_email - class="pair" i=$i error=$job.w_email_error prefix="w_" pub=$job.w_email_pub id=$i} + class="pair" i=$i error=t($job.w_email_error) prefix="w_" pub=$job.w_email_pub id=$i} {/if}