Skip to content
Permalink
Browse files

Copy favicon to user_data directory

  • Loading branch information...
nanasess committed Feb 7, 2019
1 parent ad03d2d commit 50fcbdea4c66e5eabc03ba1e38ce7952a53ca97d
@@ -36,6 +36,8 @@ framework:
base_path: '/html/template/install'
temp_image:
base_path: '/html/upload/temp_image'
user_data:
base_path: '/html/user_data'
# json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
cache:
# this value is used as part of the "namespace" generated for the cache item keys
@@ -38,6 +38,7 @@
use Eccube\Util\CacheUtil;
use Eccube\Util\StringUtil;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
@@ -188,6 +189,15 @@ public function step2()
}
}
$faviconPath = '/assets/img/common/favicon.ico';
if (!file_exists($this->getParameter('eccube_html_dir').'/user_data'.$faviconPath)) {
$file = new Filesystem();
$file->copy(
$this->getParameter('eccube_html_front_dir').$faviconPath,
$this->getParameter('eccube_html_dir').'/user_data'.$faviconPath
);
}
return [
'noWritePermissions' => $noWritePermissions,
];
@@ -30,7 +30,7 @@ file that was distributed with this source code.
{% if Page.meta_tags is not empty %}
{{ include(template_from_string(Page.meta_tags)) }}
{% endif %}
<link rel="icon" href="{{ asset('assets/img/common/favicon.ico') }}">
<link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css">

0 comments on commit 50fcbde

Please sign in to comment.
You can’t perform that action at this time.