mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
#4027 - HTML import, check for PHP Tidy extension
This commit is contained in:
@@ -39,6 +39,7 @@ class html_import extends base_import_class
|
||||
private $content = array();
|
||||
private $contentArray = array();
|
||||
|
||||
|
||||
function init()
|
||||
{
|
||||
$this->feedUrl = vartrue($_POST['siteUrl'],false);
|
||||
@@ -54,9 +55,13 @@ class html_import extends base_import_class
|
||||
{
|
||||
$import = $this->sortSelection();
|
||||
$this->doConversion($import);
|
||||
|
||||
}
|
||||
|
||||
if(!extension_loaded("tidy"))
|
||||
{
|
||||
$this->useTidy = false;
|
||||
e107::getMessage()->addWarning("PHP Tidy extension is NOT loaded!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -293,10 +298,6 @@ class html_import extends base_import_class
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private function findLinks($content,$type='html')
|
||||
{
|
||||
$doc = new DOMDocument();
|
||||
|
Reference in New Issue
Block a user