mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-13 04:19:47 +01:00
Optimisations & fixes.
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
$title = 'Changelog';
|
||||
|
||||
$_page = isset($_GET['page']) ? $_GET['page'] : 0;
|
||||
$id = isset($_GET['id']) ? $_GET['id'] : 0;
|
||||
$_page = $_GET['page'] ?? 0;
|
||||
$id = $_GET['id'] ?? 0;
|
||||
$limit = 30;
|
||||
$offset = $_page * $limit;
|
||||
$next_page = false;
|
||||
@@ -43,4 +43,3 @@ $twig->display('changelog.html.twig', array(
|
||||
'next_page' => $next_page,
|
||||
'canEdit' => $canEdit,
|
||||
));
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user