Skip to content

Commit

Permalink
Added line_width option to global main configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
loocars committed May 29, 2024
1 parent 1beb669 commit 2a162da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
1.9.41
Frontend:
* FIX: Fix failing reporting of errors when messages contained special characters
* Added option "line_width" to default section of global config
* FIX: Fix failing reporting of errors when messages contained special characters

1.9.40
Core:
Expand Down
6 changes: 6 additions & 0 deletions share/server/core/classes/GlobalMainCfg.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,12 @@ public function __construct() {
'default' => '10:#8c00ff,25:#2020ff,40:#00c0ff,55:#00f000,70:#f0f000,85:#ffc000,100:#ff0000',
'match' => MATCH_WEATHER_COLORS,
),
'line_width' => Array(
'must' => 0,
'editable' => 1,
'default' => 3,
'match' => MATCH_INTEGER,
),
'zoombar' => Array(
'must' => 0,
'editable' => 1,
Expand Down
8 changes: 4 additions & 4 deletions share/server/core/mapcfg/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,10 @@ function listSources($MAPCFG, $objId, $attrs) {
'depends_value' => 'line',
),
'line_width' => Array(
'must' => 0,
'default' => '3',
'match' => MATCH_INTEGER,
'depends_on' => 'view_type',
'must' => 0,
'default' => cfg('defaults', 'line_width'),
'match' => MATCH_INTEGER,
'depends_on' => 'view_type',
'depends_value' => 'line'),
'line_weather_colors' => Array(
'must' => 0,
Expand Down

0 comments on commit 2a162da

Please sign in to comment.