Browse Source

sanity config: fix typo

Andrew Dolgov 4 months ago
parent
commit
b2f0858060
3 changed files with 4 additions and 4 deletions
  1. 1 1
      include/sanity_check.php
  2. 2 2
      include/sanity_config.php
  3. 1 1
      utils/regen_config_checks.sh

+ 1 - 1
include/sanity_check.php

@@ -75,7 +75,7 @@
 					"Configuration option checker sanity_config.php is outdated, please recreate it using ./utils/regen_config_checks.sh");
 			}
 
-			foreach ($requred_defines as $d) {
+			foreach ($required_defines as $d) {
 				if (!defined($d)) {
 					array_push($errors,
 						"Required configuration file parameter $d is not defined in config.php. You might need to copy it from config.php-dist.");

File diff suppressed because it is too large
+ 2 - 2
include/sanity_config.php


+ 1 - 1
utils/regen_config_checks.sh

@@ -8,7 +8,7 @@ echo -n "define('GENERATED_CONFIG_CHECK', " >> $DESTINATION
 grep CONFIG_VERSION config.php-dist | awk -F ' |)' '{ print $2 }' | xargs echo -n >> $DESTINATION
 echo ");" >> $DESTINATION
 
-echo -n "\$requred_defines = array( " >> $DESTINATION
+echo -n "\$required_defines = array( " >> $DESTINATION
 
 grep define\( config.php-dist | awk -F\' '{ print "*" $2 "*," }' | grep -v DB_PORT | xargs echo -n | sed -e s/,$// -e s/*/\'/g >> $DESTINATION