mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
Fix type mistake
This commit is contained in:
parent
fdea88eb2b
commit
4311af2a5f
@ -56,7 +56,7 @@ class SkinlibController extends Controller
|
|||||||
->merge($textures->where('uploader', $this->user->uid));
|
->merge($textures->where('uploader', $this->user->uid));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$textures = $textures->where('public', '1');
|
$textures = $textures->where('public', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$total_pages = ceil($textures->count() / 20);
|
$total_pages = ceil($textures->count() / 20);
|
||||||
@ -88,7 +88,7 @@ class SkinlibController extends Controller
|
|||||||
} else {
|
} else {
|
||||||
$textures = Texture::like('name', $q)
|
$textures = Texture::like('name', $q)
|
||||||
->where('type', $filter)
|
->where('type', $filter)
|
||||||
->where('public', '1')
|
->where('public', 1)
|
||||||
->orderBy($sort_by, 'desc')->get();
|
->orderBy($sort_by, 'desc')->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ class SkinlibController extends Controller
|
|||||||
->merge($textures->where('uploader', $this->user->uid));
|
->merge($textures->where('uploader', $this->user->uid));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$textures = $textures->where('public', '1');
|
$textures = $textures->where('public', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('skinlib.search')->with('user', $this->user)
|
return view('skinlib.search')->with('user', $this->user)
|
||||||
|
Loading…
Reference in New Issue
Block a user