Skip to content

Commit e22d4b7

Browse files
committed
0.9.1 fix sitemap if PHP short open tag activated
1 parent e04c65a commit e22d4b7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Todo? Dépendances de cette catégorie : liste des identifiants par langue (option)
22

3+
version 0.9.1 (06/08/2020)
4+
Fix sitemap si les short open tag de PHP activés (merci garys02) https://forum.pluxml.org/discussion/comment/60915/#Comment_60915
5+
36
version 0.9.0 (05/08/2020)
47
ready for next gen (autoload) : si les paramas ne sont pas chargés ds le constructeur, on les charge ;)
58
Fix __CLASS__ adminPrepend le plugins ne sont pas a la bonne langue a leur 1er accès (du au fait de la session admin_lang est différente de data_lang. scope : si la langue de l'utilisateur est non respecté)

infos.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<document>
33
<title><![CDATA[MyMultiLingue]]></title>
44
<author><![CDATA[Stephane F., Thomas I. @sudwebdesign]]></author>
5-
<version>0.9.0</version>
6-
<date>05/08/2020</date>
5+
<version>0.9.1</version>
6+
<date>06/08/2020</date>
77
<site>http://sudwebdesign.free.fr/depot.php#multi</site>
88
<description><![CDATA[Gestion multilingue de PluXml, #SWD]]></description>
99
<requirements></requirements>

plxMyMultiLingue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,8 +1079,8 @@ public function SitemapBegin() {
10791079
if(!preg_match('~sitemap.php\/([a-zA-Z]{2})$~', $_SERVER['REQUEST_URI'], $capture)) {
10801080
# création d'un sitemapindex
10811081
header('Content-type: text/xml');
1082+
echo '<?xml version="1.0" encoding="' . strtolower(PLX_CHARSET) . '"?>' . PHP_EOL;
10821083
?>
1083-
<?xml version="1.0" encoding="<?= strtolower(PLX_CHARSET)?>"?>
10841084
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
10851085
<?php foreach($this->aLangs as $lang) {?>
10861086
<sitemap>

0 commit comments

Comments
 (0)