Skip to content

Commit 8c9c5cf

Browse files
committedMay 17, 2019
fix: false values in config error
Setting a variable to false in the config would screw up the interface... I hate PHP
1 parent 3d9c487 commit 8c9c5cf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎index.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,23 @@
8181
var _MAP_iconURL = "<?php echo $config->mapIconUrl; ?>";
8282

8383
// Set if to show Atlas map (WARNING: REQUIRES "atlas" TILE DIRECTORY)
84-
var _MAP_atlasMap = <?php echo $config->atlasEnabled; ?>;
84+
var _MAP_atlasMap = <?php echo $config->atlasEnabled? 'true' : 'false'; ?>;
8585

8686
// Set if to show Satellite map (WARNING: REQUIRES "satellite" TILE DIRECTORY)
87-
var _MAP_satelliteMap = <?php echo $config->satelliteEnabled; ?>;
87+
var _MAP_satelliteMap = <?php echo $config->satelliteEnabled? 'true' : 'false'; ?>;
8888

8989
// Set if to show Road map (WARNING: REQUIRES "road" TILE DIRECTORY)
90-
var _MAP_roadMap = <?php echo $config->roadEnabled; ?>;
90+
var _MAP_roadMap = <?php echo $config->roadEnabled? 'true' : 'false'; ?>;
9191

9292
// Set if to show UV Invert map (WARNING: REQUIRES "uv-invert" TILE DIRECTORY)
93-
var _MAP_UVInvMap = <?php echo $config->uvInveredEnabled; ?>;
93+
var _MAP_UVInvMap = <?php echo $config->uvInveredEnabled? 'true' : 'false'; ?>;
9494

9595
// Set to the IP of the GTA server running "live_map" and change the port to the
9696
// number that is set
9797
var _SETTINGS_socketUrl = "<?php echo $config->socketUrl() ?>";
9898

9999
// Set to false if you don't want to show the player's identifiers (this may be their IP)
100-
var _SETTINGS_showIdentifiers = <?php echo $config->showIdentifiers; ?>;
100+
var _SETTINGS_showIdentifiers = <?php echo $config->showIdentifiers? 'true' : 'false'; ?>;
101101

102102
var _SETTINGS_blipUrl = "<?php echo $config->blipUrl(); ?>";
103103

0 commit comments

Comments
 (0)