Skip to content

Commit

Permalink
added TCPDF positive check
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Dec 26, 2020
1 parent 4067a3e commit 19fc7b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
*/

use Xmf\Module\Admin;
use Xmf\Request;
use Xmf\Yaml;
use XoopsModules\Publisher\{Common,
Common\Configurator,
Common\TestdataButtons,
Helper,
Utility
Expand All @@ -34,7 +33,7 @@
xoops_cp_header();
$adminObject = Admin::getInstance();
$utility = new Utility();
$configurator = new Common\Configurator();
$configurator = new Configurator();
$helper = Helper::getInstance();
$helper->loadLanguage('main');
$helper->loadLanguage('admin');
Expand All @@ -54,7 +53,9 @@
}
*/

if (!is_file(XOOPS_ROOT_PATH . '/class/libraries/vendor/tecnickcom/tcpdf/tcpdf.php')) {
if (is_file(XOOPS_ROOT_PATH . '/class/libraries/vendor/tecnickcom/tcpdf/tcpdf.php')) {
$adminObject->addConfigBoxLine('<span style="color:green;"><img src="' . $pathIcon16 . '/1.png" alt="!">' . _MD_PUBLISHER_PDF . '</span>', 'default');
} else {
$adminObject->addConfigBoxLine('<span style="color:#ff0000;"><img src="' . $pathIcon16 . '/0.png" alt="!">' . _MD_PUBLISHER_ERROR_NO_PDF . '</span>', 'default');
}

Expand Down

0 comments on commit 19fc7b4

Please sign in to comment.