1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Added control-upon-access of the default favicon.ico file

This commit is contained in:
Dan Brown
2023-02-09 21:16:27 +00:00
parent da42fc7457
commit f333db8e4f
3 changed files with 34 additions and 10 deletions

View File

@ -136,7 +136,7 @@ class HomeController extends Controller
*/
public function favicon(FaviconHandler $favicons)
{
$favicons->restoreOriginalIfNotExists();
return response()->file($favicons->getPath());
$exists = $favicons->restoreOriginalIfNotExists();
return response()->file($exists ? $favicons->getPath() : $favicons->getOriginalPath());
}
}