]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Images/GalleryImageController.php
fix the bug for lang's extra letter.
[bookstack] / app / Http / Controllers / Images / GalleryImageController.php
index fd52ffd3fb6eaa30466345b2a08e60c0227ba009..e506215ca43b919a9d79d4b6ba743f33c39e13ca 100644 (file)
@@ -48,7 +48,7 @@ class GalleryImageController extends Controller
     {
         $this->checkPermission('image-create-all');
         $this->validate($request, [
-            'file' => $this->imageRepo->getImageValidationRules()
+            'file' => $this->getImageValidationRules()
         ]);
 
         try {