[SPIP] ~maj v3.0.14-->v3.0.17
[ptitvelo/web/www.git] / www / ecrire / public / balises.php
index 3bf39d6..27b8f19 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2012                                                *
+ *  Copyright (c) 2001-2014                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -401,9 +401,9 @@ function balise_INTRODUCTION_dist($p) {
 function balise_LANG_dist ($p) {
        $_lang = champ_sql('lang', $p);
        if (!$p->etoile)
-               $p->code = "htmlentities($_lang ? $_lang : \$GLOBALS['spip_lang'])";
+               $p->code = "spip_htmlentities($_lang ? $_lang : \$GLOBALS['spip_lang'])";
        else
-               $p->code = "htmlentities($_lang)";
+               $p->code = "spip_htmlentities($_lang)";
        $p->interdire_scripts = false;
        return $p;
 }
@@ -1086,7 +1086,7 @@ function balise_INCLURE_dist($p) {
        } elseif (!isset($_contexte[1])) {
                        $msg = array('zbug_balise_sans_argument', array('balise' => ' INCLURE'));
                        erreur_squelette($msg, $p);
-       } else          $p->code = '(($c = find_in_path(' . $_contexte[1] . ')) ? spip_file_get_contents($c) : "")';
+       } else          $p->code = 'charge_scripts(' . $_contexte[1] . ',false)';
 
        $p->interdire_scripts = false; // la securite est assuree par recuperer_fond
        return $p;