From 141270687332ca07893db6ae248919f62ee55cd7 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 8 Nov 2005 21:55:01 +0000 Subject: [PATCH] Handle the lack of curl. From skeltoac. fixes #1855 git-svn-id: https://develop.svn.wordpress.org/trunk@3016 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import/blogger.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-admin/import/blogger.php b/wp-admin/import/blogger.php index 32e10ac764..c200fba114 100644 --- a/wp-admin/import/blogger.php +++ b/wp-admin/import/blogger.php @@ -12,7 +12,14 @@ class Blogger_Import { $noiframes = __('This feature requires iframe support.'); $warning = __('This will delete everything saved by the Blogger importer except your posts and comments. Are you sure you want to do this?'); $reset = __('Reset this importer'); - echo "

$title

$welcome

$reset

\n"; + $incompat = __('Your web server is not properly configured to use this importer. Please enable the CURL extension for PHP and then reload this page.'); + + echo "

$title

$welcome

"; + if ( function_exists('curl_init') ) + echo "

$reset

"; + else + echo "

$incompat

"; + echo "
\n"; } // Deletes saved data and redirect.