]> _ Git - cubist_cms-back.git/commitdiff
fix #3504 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 18 Mar 2020 17:14:41 +0000 (18:14 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 18 Mar 2020 17:14:41 +0000 (18:14 +0100)
src/app/Http/Controllers/CubistPWAController.php

index bd48a8a3fbce686cf913b8cd76a50f8f7b11cb92..ee781647ca5089dd25c9f54c133d653389cb4b28 100644 (file)
@@ -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);