From: Vincent Vanwaelscappel Date: Wed, 18 Mar 2020 17:14:41 +0000 (+0100) Subject: fix #3504 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7dce114cb46b1727bd8e95cc7951c7f58e25341e;p=cubist_cms-back.git fix #3504 @0.25 --- diff --git a/src/app/Http/Controllers/CubistPWAController.php b/src/app/Http/Controllers/CubistPWAController.php index bd48a8a..ee78164 100644 --- a/src/app/Http/Controllers/CubistPWAController.php +++ b/src/app/Http/Controllers/CubistPWAController.php @@ -3,6 +3,7 @@ namespace Cubist\Backpack\app\Http\Controllers; +use Cubist\Backpack\Facades\App; use Illuminate\Http\Request; use PHP_ICO; @@ -41,7 +42,8 @@ class CubistPWAController extends CubistFrontController public function favicon() { $source = $this->data['global']->getImageFile('favicon', 'favicon_144'); - $dest = storage_path('favicon.ico'); + + $dest = storage_path('favicon-' . App::getVariant() . '.ico'); if (!file_exists($dest) || filemtime($source) > filemtime($dest)) { $ico_lib = new PHP_ICO($source, array(array(16, 16), array(32, 32), array(64, 64), array(128, 128))); $ico_lib->save_ico($dest);