From 53aefa5b33008adbf6c0147bcddff649f264fa6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Gaillard?= Date: Tue, 5 Mar 2013 15:15:18 +0100 Subject: [PATCH] [-] BO : Premium activation block & logos --- controllers/admin/AdminHomeController.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminHomeController.php b/controllers/admin/AdminHomeController.php index a21e04e79..1900010e2 100644 --- a/controllers/admin/AdminHomeController.php +++ b/controllers/admin/AdminHomeController.php @@ -542,8 +542,12 @@ class AdminHomeControllerCore extends AdminController { // Cache the logo 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 $display = 0; if (file_exists('../config/xml/default_country_modules_list.xml') && filesize('../config/xml/default_country_modules_list.xml') > 10)