summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorYaco <franco@reevo.org>2019-02-20 12:36:10 -0300
committerYaco <franco@reevo.org>2019-02-20 12:36:10 -0300
commitab7719b64641c0f9d5664077b7dfb4c7cbc2ff13 (patch)
tree94ec64a0dc76f0a6b02c6ef10da00095b34c870c /bin
parent8a226f8d59657734fd710128542d25204693e4d6 (diff)
Corrige codificacion
Diffstat (limited to 'bin')
-rw-r--r--bin/wiki/GeneraSnapshot.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/wiki/GeneraSnapshot.php b/bin/wiki/GeneraSnapshot.php
index e1c0f485..ab6cdd6f 100644
--- a/bin/wiki/GeneraSnapshot.php
+++ b/bin/wiki/GeneraSnapshot.php
@@ -69,11 +69,14 @@ function GeneraSnapshot($pagetitle, $services) {
$fileUploader->upload( $snapshot_name, '/tmp/final.jpg', $snaphot_pagecontent, $snaphot_desc );
// Crea nueva o actualiza existente
+ $fileContent = file_get_contents('/tmp/linkcontent');
+ $fileContent = iconv("UTF-8","ISO-8859-1//IGNORE",$fileContent);
+ $fileContent = iconv("ISO-8859-1","UTF-8",$fileContent);
$linkContent = '
{{Prensa-Archivo
|prensa:archivo:imagen='. $snapshot_name.'
|prensa:archivo:texto=';
- $linkContent .= file_get_contents('/tmp/linkcontent');
+ $linkContent .= $fileContent;
$linkContent .= '
}}';