From dd30741fb2f2402e18ad750d3098360f6eeabaf6 Mon Sep 17 00:00:00 2001
From: kent1 <kent1@arscenic.info>
Date: Tue, 15 Nov 2016 12:33:09 +0000
Subject: [PATCH] Simples quotes

---
 ecrire/typographie/en.php |  6 +++---
 ecrire/typographie/fr.php | 18 +++++++++---------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/ecrire/typographie/en.php b/ecrire/typographie/en.php
index 33fb2729db..260e544814 100644
--- a/ecrire/typographie/en.php
+++ b/ecrire/typographie/en.php
@@ -19,7 +19,7 @@ if (!defined('_ECRIRE_INC_VERSION')) {
 function typographie_en_dist($letexte) {
 
 	// zouli apostrophe
-	$letexte = str_replace("'", "&#8217;", $letexte);
+	$letexte = str_replace("'", '&#8217;', $letexte);
 
 	$cherche1 = array(
 		'/ --?,/S'
@@ -29,8 +29,8 @@ function typographie_en_dist($letexte) {
 	);
 	$letexte = preg_replace($cherche1, $remplace1, $letexte);
 
-	$letexte = str_replace("&nbsp;", "~", $letexte);
-	$letexte = preg_replace("/ *~+ */", "~", $letexte);
+	$letexte = str_replace('&nbsp;', '~', $letexte);
+	$letexte = preg_replace('/ *~+ */', '~', $letexte);
 
 	$cherche2 = array(
 		'/([^-\n]|^)--([^-]|$)/',
diff --git a/ecrire/typographie/fr.php b/ecrire/typographie/fr.php
index 307b949af8..ccc331d3ff 100644
--- a/ecrire/typographie/fr.php
+++ b/ecrire/typographie/fr.php
@@ -24,20 +24,20 @@ function typographie_fr_dist($letexte) {
 	// 147 = ldquo; 148 = rdquo; ' = zouli apostrophe
 	if (!$trans) {
 		$trans = array(
-			"'" => "&#8217;",
-			"&nbsp;" => "~",
-			"&raquo;" => "&#187;",
-			"&laquo;" => "&#171;",
-			"&rdquo;" => "&#8221;",
-			"&ldquo;" => "&#8220;",
-			"&deg;" => "&#176;"
+			"'" => '&#8217;',
+			'&nbsp;' => '~',
+			'&raquo;' => '&#187;',
+			'&laquo;' => '&#171;',
+			'&rdquo;' => '&#8221;',
+			'&ldquo;' => '&#8220;',
+			'&deg;' => '&#176;'
 		);
 		$chars = array(160 => '~', 187 => '&#187;', 171 => '&#171;', 148 => '&#8221;', 147 => '&#8220;', 176 => '&#176;');
 		$chars_trans = array_keys($chars);
 		$chars = array_values($chars);
 		$chars_trans = implode(' ', array_map('chr', $chars_trans));
 		$chars_trans = unicode2charset(charset2unicode($chars_trans, 'iso-8859-1', 'forcer'));
-		$chars_trans = explode(" ", $chars_trans);
+		$chars_trans = explode(' ', $chars_trans);
 		foreach ($chars as $k => $r) {
 			$trans[$chars_trans[$k]] = $r;
 		}
@@ -66,7 +66,7 @@ function typographie_fr_dist($letexte) {
 		'\0~'
 	);
 	$letexte = preg_replace($cherche1, $remplace1, $letexte);
-	$letexte = preg_replace("/ *~+ */S", "~", $letexte);
+	$letexte = preg_replace('/ *~+ */S', '~', $letexte);
 
 	$cherche2 = array(
 		'/([^-\n]|^)--([^-]|$)/S',
-- 
GitLab