Fixed: very old CA installs would show -1 as max per page

This commit is contained in:
Squidly271 2022-03-12 10:21:22 -05:00
parent c83114cdd8
commit 7aaf402e1d
3 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -19,7 +19,6 @@ require_once "$docroot/plugins/$plugin/include/paths.php";
require_once "$docroot/plugins/$plugin/include/helpers.php";
require_once "$docroot/plugins/dynamix.docker.manager/include/DockerClient.php";
$DockerClient = new DockerClient();
$DockerTemplates = new DockerTemplates();
@ -33,6 +32,9 @@ $diagnosticsFile = htmlspecialchars(str_replace(' ','_',strtolower($var['NAME'])
$cfg = parse_plugin_cfg($plugin);
$cfg['dockerSearch'] = "yes";
if ( $cfg['maxPerPage'] < 24 ) $cfg['maxPerPage'] = 24;
if ( ! is_file($caPaths['warningAccepted']) ) {
$firstRun = "true";
}

View File

@ -1,4 +1,4 @@
af50c424366caf1bc4af63398a0e6adb ./Apps.page
5b1d28724dc2fe661afdbaa6d19fed29 ./Apps.page
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg