]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/HomeController.php
Added control-upon-access of the default favicon.ico file
[bookstack] / app / Http / Controllers / HomeController.php
index 84651f6531fde170829ad3e0b68b3b31da10e0f9..a82710523846ca252ada0d2cf4db88a4650f6509 100644 (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());
     }
 }