tux...@adullact.net
unread,Aug 18, 2017, 11:21:18 AM8/18/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to openmairi...@googlegroups.com
Author: tuxayo
Date: 2017-08-18 17:21:16 +0200 (Fri, 18 Aug 2017)
New Revision: 7440
Modified:
branches/new_col_nature_travaux/sql/pgsql/dossier_instruction.inc.php
Log:
Coding style: remplacement de string interpolation par concatenation
Modified: branches/new_col_nature_travaux/sql/pgsql/dossier_instruction.inc.php
===================================================================
--- branches/new_col_nature_travaux/sql/pgsql/dossier_instruction.inc.php 2017-08-18 15:15:20 UTC (rev 7439)
+++ branches/new_col_nature_travaux/sql/pgsql/dossier_instruction.inc.php 2017-08-18 15:21:16 UTC (rev 7440)
@@ -74,7 +74,7 @@
$max_chars = 40; // nombre max de caractères à afficher dans la colonne avant de
// tronquer et rajouter une ellipse (…)
$nature_des_travaux_select = "
-CASE WHEN char_length(nature_des_travaux) <= $max_chars
+CASE WHEN char_length(nature_des_travaux) <= ".$max_chars."
THEN
CONCAT('<span title=\"',
nature_des_travaux,
@@ -85,7 +85,7 @@
CONCAT('<span title=\"',
nature_des_travaux,
'\">',
- replace(left(nature_des_travaux, $max_chars), '\n', '<br/>') || '…',
+ replace(left(nature_des_travaux, ".$max_chars."), '\n', '<br/>') || '…',
'</span>')
END"
." as \""._("nature des travaux").'"';