[-] BO : Premium activation block & logos
This commit is contained in:
@@ -542,7 +542,11 @@ class AdminHomeControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
// Cache the logo
|
// Cache the logo
|
||||||
if (!file_exists('../img/tmp/preactivation_'.htmlentities((string)$partner->module).'.png'))
|
if (!file_exists('../img/tmp/preactivation_'.htmlentities((string)$partner->module).'.png'))
|
||||||
@copy(htmlentities((string)$partner->logo), '../img/tmp/preactivation_'.htmlentities((string)$partner->module).'.png');
|
{
|
||||||
|
$logo = @Tools::file_get_contents(htmlentities((string)$partner->logo));
|
||||||
|
if (sizeof($logo) > 0)
|
||||||
|
file_put_contents('../img/tmp/preactivation_'.htmlentities((string)$partner->module).'.png', $logo);
|
||||||
|
}
|
||||||
|
|
||||||
// Check if module is not already installed and configured
|
// Check if module is not already installed and configured
|
||||||
$display = 0;
|
$display = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user