Move version assignment (to var) to sectiondir config.inc.php.

This commit is contained in:
Retro_Guy 2024-10-22 05:43:50 -07:00
parent 301b9daf27
commit d686415a0d
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,5 @@
<?php
/* Version */
$rslight_version = file_get_contents('../common/version.txt');
/* Location of configuration and spool */
$config_dir = "<config_dir>";
$spooldir = "<spooldir>";

View File

@ -46,6 +46,9 @@ $script_path = $config_dir . "/scripts/";
$CONFIG = include ($config_file);
$OVERRIDES = include ($config_dir . '/overrides.inc.php');
/* Version */
$rslight_version = file_get_contents('../common/version.txt');
// Spool directory size and minimum in Gigabytes
if ($OVERRIDES['min_spool_disk_space'] > 0) {
$min_spool_disk_space = $OVERRIDES['min_spool_disk_space'];