[pkg-nagios-changes] [Git][nagios-team/nagvis][upstream] New upstream version 1.9.41
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Mon Jul 8 19:48:23 BST 2024
Bas Couwenberg pushed to branch upstream at Debian Nagios Maintainer Group / nagvis
Commits:
8ce4662d by Bas Couwenberg at 2024-07-08T20:44:01+02:00
New upstream version 1.9.41
- - - - -
6 changed files:
- ChangeLog
- share/frontend/nagvis-js/classes/ViewError.php
- share/server/core/classes/CoreModMultisite.php
- share/server/core/classes/GlobalMainCfg.php
- share/server/core/defines/global.php
- share/server/core/mapcfg/default.php
Changes:
=====================================
ChangeLog
=====================================
@@ -1,3 +1,9 @@
+1.9.41
+Frontend:
+ * FIX: Fix PHP 5.4 compatibility issue (syntax error, unexpected 'list')
+ * 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:
* FIX: Fix PHP 5.4 and 5.5 compatibility issue (Fatal error: Arrays are not allowed in class constants)
=====================================
share/frontend/nagvis-js/classes/ViewError.php
=====================================
@@ -35,8 +35,8 @@ class ViewError {
js('frontendMessage({'.N
.' "type" : "error",'.N
.' "closable": false,'.N
- .' "title" : "'.l('Error').'",'.N
- .' "message" : "'.htmlentities($e->getMessage(), ENT_COMPAT, 'UTF-8').'"'.N
+ .' "title" : '.json_encode(l('Error')).','.N
+ .' "message" : '.json_encode(htmlentities($e->getMessage(), ENT_COMPAT, 'UTF-8')).N
.'});');
echo '</div>';
=====================================
share/server/core/classes/CoreModMultisite.php
=====================================
@@ -223,7 +223,9 @@ class CoreModMultisite extends CoreModule {
$_BACKEND->execute();
$aMaps = Array();
- foreach($aObjs AS list($MAP, $state)) {
+ foreach($aObjs AS $aObj) {
+ $MAP = $aObj[0];
+ $state = $aObj[1];
if ($state !== null) {
$MAP->clearMembers();
$MAP->setState($state);
=====================================
share/server/core/classes/GlobalMainCfg.php
=====================================
@@ -694,6 +694,12 @@ class GlobalMainCfg {
'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,
=====================================
share/server/core/defines/global.php
=====================================
@@ -23,7 +23,7 @@
*****************************************************************************/
// NagVis Version
-define('CONST_VERSION', '1.9.40');
+define('CONST_VERSION', '1.9.41');
// Set PHP error handling to standard level
// Different levels for php versions below 5.1 because PHP 5.1 reports
=====================================
share/server/core/mapcfg/default.php
=====================================
@@ -565,10 +565,10 @@ $mapConfigVars = Array(
'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,
View it on GitLab: https://salsa.debian.org/nagios-team/nagvis/-/commit/8ce4662dfcf001e48a0b94cf63716f361a5ffc0b
--
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/nagios-team/nagvis/-/commit/8ce4662dfcf001e48a0b94cf63716f361a5ffc0b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20240708/86979d80/attachment-0001.htm>
More information about the pkg-nagios-changes
mailing list