Bugfixes and updates on the forms and database access as well as the pagination

This commit is contained in:
Stephan Kasdorf
2021-05-19 19:57:23 +02:00
parent 618c369433
commit 5584070f4d
7 changed files with 38 additions and 20 deletions

View File

@@ -142,11 +142,12 @@ abstract class Pageination implements IPageination
}
/**
* will set the entries per page
* @desc will set the entries per page
* @param int $entriesPerPage
*/
private static function setEntriesPerPage( )
public static function setEntriesPerPage( int $entriesPerPage = 0 )
{
self::$_entries_per_page = Config::getInstance()->getConfig()[View::NIBIRU_SETTINGS]['entriesperpage'];
self::$_entries_per_page = $entriesPerPage ? $entriesPerPage : Config::getInstance()->getConfig()[View::NIBIRU_SETTINGS]['entriesperpage'];
}
/**