Skip to content

Commit

Permalink
Limit wurde irgnoriert (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhunderter committed Aug 25, 2023
1 parent 4cc12fa commit d01aceb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion application/modules/shoutbox/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Config extends \Ilch\Config\Install
{
public $config = [
'key' => 'shoutbox',
'version' => '1.5.0',
'version' => '1.5.1',
'icon_small' => 'fa-solid fa-bullhorn',
'author' => 'Veldscholten, Kevin',
'link' => 'https://ilch.de',
Expand Down Expand Up @@ -97,6 +97,8 @@ public function getUpdate(string $installedVersion): string
case "1.4.2":
$this->db()->query("UPDATE `[prefix]_modules` SET `icon_small` = '" . $this->config['icon_small'] . "' WHERE `key` = '" . $this->config['key'] . "';");
// no break
case "1.5.0":
// no break
}

return '"' . $this->config['key'] . '" Update-function executed.';
Expand Down
2 changes: 1 addition & 1 deletion application/modules/shoutbox/mappers/Shoutbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function getShoutboxLimit(?int $limit = null): ?array
$pagination = null;
if ($limit) {
$pagination = new \Ilch\Pagination();
$pagination->setRows($limit);
$pagination->setRowsPerPage($limit);
}
return $this->getEntriesBy([], ['id' => 'DESC'], $pagination);
}
Expand Down

0 comments on commit d01aceb

Please sign in to comment.