Skip to content

Site: autocopy empty favicon.ico#307

Open
Alexkurd wants to merge 2 commits intowebasyst:devfrom
Alexkurd:patch-23
Open

Site: autocopy empty favicon.ico#307
Alexkurd wants to merge 2 commits intowebasyst:devfrom
Alexkurd:patch-23

Conversation

@Alexkurd
Copy link
Contributor

Autocopy transparent favicon.ico if no favicon.

}
$path = wa()->getDataPath('data/'.siteHelper::getDomain().'/favicon.ico', true);
if (!file_exists($path) || !is_writable($path)) {
$faviconEmpty = waConfig::get('wa_path_apps').'/site/img/favicon.ico';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$wa = wa();
$path = $wa->getDataPath('data/'.siteHelper::getDomain().'/favicon.ico', true);
if (!file_exists($path) || !is_writable($path)) {
$faviconEmpty = $wa->getAppPath('img/favicon.ico');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants