summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorYaco <franco@reevo.org>2019-02-02 11:34:21 -0300
committerYaco <franco@reevo.org>2019-02-02 11:34:21 -0300
commit4d02a17d20c6369c2dacffbe89302aaca4eeed54 (patch)
treee6bd9227b59ffa710eae7751b48ee4b3be2afb9c /bin
parentade5ceca1d6780dddd6f665306b0e3c1cc7ae37d (diff)
corrige generacion de copia de texto
Diffstat (limited to 'bin')
-rw-r--r--bin/wiki/GeneraSnapshot.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/wiki/GeneraSnapshot.php b/bin/wiki/GeneraSnapshot.php
index 85c8ead1..b92764ce 100644
--- a/bin/wiki/GeneraSnapshot.php
+++ b/bin/wiki/GeneraSnapshot.php
@@ -12,7 +12,7 @@ require_once( __DIR__ . '/vendor/autoload.php' );
require_once( __DIR__ .'/../../etc/global_config.php' );
// Log in to a wiki
-$api = new \Mediawiki\Api\MediawikiApi( 'http://'. $REEVO_URL .'/api.php' );
+$api = new \Mediawiki\Api\MediawikiApi( $wgServer .'/api.php' );
$api->login( new \Mediawiki\Api\ApiUser( $REEVO_WIKI_API_USER, $REEVO_WIKI_API_PASS ) );
$services = new \Mediawiki\Api\MediawikiFactory( $api );
@@ -52,8 +52,8 @@ function GeneraSnapshot($pagetitle, $services) {
return;
}
// Obtiene copia de texto del articulo
- $command = 'curl -s ' . $url . ' | unfluff | jq -r .text';
- echo "$command\n";
+ $command = 'curl -s ' . $url . ' | unfluff | jq -r .text > /tmp/linkcontent';
+ // echo "$command\n";
exec($command);
// Almacena la imagen