Add migrations and update themes for new imdbid length

This commit is contained in:
DariusIII
2019-04-04 15:33:15 +02:00
parent 804a43b9da
commit 008d03d1a8
15 changed files with 149 additions and 52 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class MyMoviesController extends BasePageController
if ($action === 'doadd') {
$category = ($request->has('category') && \is_array($request->input('category')) && ! empty($request->input('category'))) ? $request->input('category') : [];
UserMovie::addMovie($this->userdata->id, str_pad($imdbid, 7, '0', STR_PAD_LEFT), $category);
UserMovie::addMovie($this->userdata->id, str_pad($imdbid, 8, '0', STR_PAD_LEFT), $category);
if ($request->has('from')) {
return redirect($request->input('from'));
}