mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
#4027 - Move up PHP Tidy extension test
This commit is contained in:
parent
3ad316a87f
commit
9102e275d4
@ -44,6 +44,12 @@ class html_import extends base_import_class
|
||||
{
|
||||
$this->feedUrl = vartrue($_POST['siteUrl'],false);
|
||||
$this->feedUrl = rtrim($this->feedUrl,"/");
|
||||
|
||||
if(!extension_loaded("tidy"))
|
||||
{
|
||||
$this->useTidy = false;
|
||||
e107::getMessage()->addWarning("PHP Tidy extension is NOT loaded!");
|
||||
}
|
||||
|
||||
if($_POST['preview'])
|
||||
{
|
||||
@ -56,12 +62,7 @@ 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!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user