fix un-existent column

This commit is contained in:
printempw 2016-08-14 13:31:56 +08:00
parent 6e4e50168c
commit 08c54acae7

View File

@ -123,7 +123,7 @@ class SkinlibController extends BaseController
$t = new Texture();
$t->name = $_POST['name'];
$t->type = $_POST['type'];
$t->like = 1;
$t->likes = 1;
$t->hash = \Storage::upload($_FILES['file']);
$t->size = ceil($_FILES['file']['size'] / 1024);
$t->public = ($_POST['public'] == 'true') ? "1" : "0";