mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 16:17:14 +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 $content = array();
|
||||||
private $contentArray = array();
|
private $contentArray = array();
|
||||||
|
|
||||||
|
|
||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
$this->feedUrl = vartrue($_POST['siteUrl'],false);
|
$this->feedUrl = vartrue($_POST['siteUrl'],false);
|
||||||
@@ -54,9 +55,13 @@ class html_import extends base_import_class
|
|||||||
{
|
{
|
||||||
$import = $this->sortSelection();
|
$import = $this->sortSelection();
|
||||||
$this->doConversion($import);
|
$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')
|
private function findLinks($content,$type='html')
|
||||||
{
|
{
|
||||||
$doc = new DOMDocument();
|
$doc = new DOMDocument();
|
||||||
|
Reference in New Issue
Block a user