Skip to content

Commit

Permalink
BUG Mauvais chemin vers le dossier des articles sur l'écran: Administ…
Browse files Browse the repository at this point in the history
…ration > Configuration avancée
  • Loading branch information
Stephane committed Nov 9, 2016
1 parent fc88bbb commit 9dc5d7f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 4 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
version 0.7.3 (25/10/2016)
version 0.7.4 (09/11/2016)
BUG Mauvais chemin vers le dossier des articles sur l'écran: Administration > Configuration avancée

version 0.7.3 (25/10/2016)
Mise à jour traduction occitane (contribution Quent-in)
BUG Non prise en compte de langue dans les liens Voir les pages statiques à partir de l'administration

Expand Down
4 changes: 2 additions & 2 deletions infos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<document>
<title><![CDATA[MultiLingue]]></title>
<author><![CDATA[Stephane F.]]></author>
<version>0.7.3</version>
<date>25/10/2016</date>
<version>0.7.4</version>
<date>09/11/2016</date>
<site>http://pluxopolis.net</site>
<description><![CDATA[Gestion multilingue de PluXml]]></description>
<requirements></requirements>
Expand Down
8 changes: 5 additions & 3 deletions plxMyMultiLingue.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ public function ConstructLoadPlugins() {

# modification des chemins d'accès
echo '<?php
$this->aConf["default_lang"] ="'.$this->lang.'";
$this->aConf["racine_articles"] = $this->aConf["racine_articles"]."'.$this->lang.'/";
$this->aConf["racine_statiques"] = $this->aConf["racine_statiques"]."'.$this->lang.'/";
Expand All @@ -342,6 +341,7 @@ public function ConstructLoadPlugins() {
if($this->getParam('lang_medias_folder')) {
echo '<?php $this->aConf["medias"] = $this->aConf["medias"]."'.$this->lang.'/"; ?>';
}

}

public function plxMotorGetStatiques() {
Expand Down Expand Up @@ -540,8 +540,10 @@ public function AdminFootEndBody() {

echo '<?php
$output = ob_get_clean();
$output = preg_replace("/(article[a-z0-9-]+\/)/", "'.$this->lang.'/$1", $output);
$output = preg_replace("/(static[a-z0-9-]+\/)/", "'.$this->lang.'/$1", $output);
if (!preg_match("/parametres/",basename($_SERVER["SCRIPT_NAME"]))) {
$output = preg_replace("/(article[a-z0-9-]+\/)/", "'.$this->lang.'/$1", $output);
$output = preg_replace("/(static[a-z0-9-]+\/)/", "'.$this->lang.'/$1", $output);
}
echo $output;
?>';

Expand Down

0 comments on commit 9dc5d7f

Please sign in to comment.