diff --git a/MapsRegistration.php b/MapsRegistration.php index de50742f4..68d0ea05b 100644 --- a/MapsRegistration.php +++ b/MapsRegistration.php @@ -11,11 +11,7 @@ public static function onRegistration( array $credits ) { } if ( !defined( 'Maps_SETTINGS_LOADED' ) ) { - foreach ( include __DIR__ . '/DefaultSettings.php' as $key => $value ) { - $GLOBALS[$key] = $value; - } - - define( 'Maps_SETTINGS_LOADED', true ); + require_once __DIR__ . '/Maps_Settings.php'; } if ( is_readable( __DIR__ . '/vendor/autoload.php' ) ) { diff --git a/Maps_Settings.php b/Maps_Settings.php old mode 100644 new mode 100755 index 5150ec280..0d56a3025 --- a/Maps_Settings.php +++ b/Maps_Settings.php @@ -1,4 +1,17 @@ $value ) { + $GLOBALS[$key] = $value; +} + +if ( !defined( 'Maps_SETTINGS_LOADED' ) ) { + define( 'Maps_SETTINGS_LOADED', true ); +}