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:
@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user