diff options
-rw-r--r-- | bin/wiki/GeneraSnapshot.php | 6 |
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 |