[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins-dist / porte_plume / prive / porte_plume_preview_fonctions.php
index 75b3918..1997dfa 100644 (file)
@@ -1,13 +1,15 @@
 <?php
 /**
  * Fonctions pour la prévisualisation
- * 
+ *
  * @plugin Porte Plume pour SPIP
  * @license GPL
  * @package SPIP\PortePlume\Fonctions
-**/
+ **/
 
-if (!defined('_ECRIRE_INC_VERSION')) return;
+if (!defined('_ECRIRE_INC_VERSION')) {
+       return;
+}
 
 
 /**
@@ -15,7 +17,7 @@ if (!defined('_ECRIRE_INC_VERSION')) return;
  *
  * Retourne le charset SQL si on le connait, en priorité
  * sinon, on utilise le charset de l'affichage HTML.
- * 
+ *
  * Cependant, on peut forcer un charset donné avec une constante :
  * define('PORTE_PLUME_PREVIEW_CHARSET','utf-8');
  *
@@ -31,7 +33,6 @@ function filtre_pp_charset() {
        if ($charset_sql == 'utf8') {
                $charset_sql = 'utf-8';
        }
+
        return $charset_sql ? $charset_sql : $charset;
 }
-
-?>