namespace Cubist\Backpack\app\Http\Controllers;
+use Cubist\Backpack\Facades\App;
use Illuminate\Http\Request;
use PHP_ICO;
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);