Handle the lack of curl. From skeltoac. fixes #1855
git-svn-id: https://develop.svn.wordpress.org/trunk@3016 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
609383477a
commit
1412706873
@ -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 "<div class='wrap'><h2>$title</h2><p>$welcome</p><iframe src='admin.php?import=blogger&noheader=true' height='350px' width = '99%'>$noiframes</iframe><p><a href='admin.php?import=blogger&restart=true&noheader=true' onclick='return confirm(\"$warning\")'>$reset</a></p></div>\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 "<div class='wrap'><h2>$title</h2><p>$welcome</p>";
|
||||
if ( function_exists('curl_init') )
|
||||
echo "<iframe src='admin.php?import=blogger&noheader=true' height='350px' width = '99%'>$noiframes</iframe><p><a href='admin.php?import=blogger&restart=true&noheader=true' onclick='return confirm(\"$warning\")'>$reset</a></p>";
|
||||
else
|
||||
echo "<p>$incompat</p>";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
// Deletes saved data and redirect.
|
||||
|
Loading…
Reference in New Issue
Block a user