Make WordPress Core

Changeset 3016


Ignore:
Timestamp:
11/08/2005 09:55:01 PM (20 years ago)
Author:
ryan
Message:

Handle the lack of curl. From skeltoac. fixes #1855

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/blogger.php

    r2945 r3016  
    1313        $warning = __('This will delete everything saved by the Blogger importer except your posts and comments. Are you sure you want to do this?');
    1414        $reset = __('Reset this importer');
    15         echo "<div class='wrap'><h2>$title</h2><p>$welcome</p><iframe src='admin.php?import=blogger&amp;noheader=true' height='350px' width = '99%'>$noiframes</iframe><p><a href='admin.php?import=blogger&amp;restart=true&amp;noheader=true' onclick='return confirm(\"$warning\")'>$reset</a></p></div>\n";
     15        $incompat = __('Your web server is not properly configured to use this importer. Please enable the CURL extension for PHP and then reload this page.');
     16
     17        echo "<div class='wrap'><h2>$title</h2><p>$welcome</p>";
     18        if ( function_exists('curl_init') )
     19            echo "<iframe src='admin.php?import=blogger&amp;noheader=true' height='350px' width = '99%'>$noiframes</iframe><p><a href='admin.php?import=blogger&amp;restart=true&amp;noheader=true' onclick='return confirm(\"$warning\")'>$reset</a></p>";
     20        else
     21            echo "<p>$incompat</p>";
     22        echo "</div>\n";
    1623    }
    1724
Note: See TracChangeset for help on using the changeset viewer.