summaryrefslogtreecommitdiff
path: root/conf/plugin/bureaucracy/crowdfunding.php
diff options
context:
space:
mode:
authorYaco <franco@reevo.org>2022-03-12 20:47:51 +0000
committerYaco <franco@reevo.org>2022-03-12 20:47:51 +0000
commitdc132a388c227906c7d9553d5f627fa0d5a85627 (patch)
tree1a896720b32c92197d2d01f29efe3c834569786a /conf/plugin/bureaucracy/crowdfunding.php
parent83a878888e2ba678b68fc805836af337a3622623 (diff)
fix logs
Diffstat (limited to 'conf/plugin/bureaucracy/crowdfunding.php')
-rw-r--r--conf/plugin/bureaucracy/crowdfunding.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/conf/plugin/bureaucracy/crowdfunding.php b/conf/plugin/bureaucracy/crowdfunding.php
index eda21cb..a5915f8 100644
--- a/conf/plugin/bureaucracy/crowdfunding.php
+++ b/conf/plugin/bureaucracy/crowdfunding.php
@@ -43,7 +43,7 @@ class helper_plugin_bureaucracy_handler_crowdfunding implements bureaucracy_hand
foreach($fields as $row){
if ($n != 0) {
- if ($row->opt["label"] === 'E-Mail') || ($row->opt["label"] === 'Correo electrónico') {
+ if ($row->opt["label"] === 'E-Mail' OR $row->opt["label"] === 'Correo electrónico') {
$line = $line . ' | <' . $row->opt["value"] . '>';
} else {
$line = $line . ' | ' . $row->opt["value"];
@@ -62,8 +62,9 @@ class helper_plugin_bureaucracy_handler_crowdfunding implements bureaucracy_hand
$filepath = $INFO['filepath'];
// unifica el registro si viene de idioma español
- // $store_tmp = str_replace("/es/","/",$filepath);
- $store = str_replace(".txt",".log.txt",$filepath);
+ $store_tmp = str_replace("/es/","/",$filepath);
+ $store_tmp2 = str_replace("/en/","/",$store_tmp);
+ $store = str_replace(".txt",".log.txt",$store_tmp2);
// // Abre el fichero para obtener el contenido existente
if(!is_file($store)){
foreach($fields as $row){