mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 18:56:42 +02:00
fix: check for database connection and podcasts table existence before redirecting to install
fix signature regex
This commit is contained in:
parent
cacd228098
commit
eb74e81c3d
6 changed files with 22 additions and 29 deletions
|
|
@ -39,10 +39,6 @@ class NoteController extends Controller
|
|||
|
||||
public function _remap(string $method, string ...$params): mixed
|
||||
{
|
||||
if (count($params) < 1) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
if (($note = model('NoteModel')->getNoteById($params[0])) === null) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
|
@ -80,9 +76,9 @@ class NoteController extends Controller
|
|||
->where('`published_at` <= NOW()', null, false)
|
||||
->orderBy('published_at', 'ASC');
|
||||
|
||||
$pageNumber = $this->request->getGet('page');
|
||||
$pageNumber = (int) $this->request->getGet('page');
|
||||
|
||||
if (! isset($pageNumber)) {
|
||||
if ($pageNumber < 1) {
|
||||
$noteReplies->paginate(12);
|
||||
$pager = $noteReplies->pager;
|
||||
$collection = new OrderedCollectionObject(null, $pager);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue