From 9fbd241d79768265dfd67b6165e10f15d8186ad8 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 15 Jul 2015 16:32:17 -0400 Subject: [PATCH] cannot active curl option for followlocation --- controllers/Import.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/controllers/Import.php b/controllers/Import.php index 9f29372..bdd801d 100644 --- a/controllers/Import.php +++ b/controllers/Import.php @@ -348,7 +348,7 @@ $ch = curl_init($fileUrl); curl_setopt($ch, CURLOPT_TIMEOUT, 50); curl_setopt($ch, CURLOPT_FILE, $fp); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); + //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $imgData = curl_exec($ch); $httpCode = curl_getinfo($ch); curl_close($ch); @@ -698,10 +698,12 @@ } switch($step) { case 0: + //$this->post = array(); + //$this->_storePost(); + //echo '
'.print_r(get_option(GLM_WP_IMPORT_POST_OPTION), true).'
'; $this->_greet(); $this->_readOptions(); echo '

Begin Import

'; - echo '

Part 2

'; break; case 1: $numPagesImported = $this->_import(); -- 2.17.1