Author: Lars Michelsen <[email protected]>
Date: Thu Aug 1 15:37:58 2013 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Thu Aug 1 15:37:58 2013 +0200
Fixed bug in dynmap - backend_id is no view param anymore
---
share/server/core/sources/dynmap.php | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/share/server/core/sources/dynmap.php
b/share/server/core/sources/dynmap.php
index 068af45..2a95529 100644
--- a/share/server/core/sources/dynmap.php
+++ b/share/server/core/sources/dynmap.php
@@ -8,7 +8,7 @@ function dynmap_get_objects($MAPCFG, $p) {
$type = $p['dynmap_object_types'];
$filter = str_replace('\n', "\n", $p['dynmap_object_filter']);
- foreach($p['backend_id'] AS $backend_id) {
+ foreach($MAPCFG->getValue(0, 'backend_id') AS $backend_id) {
$ret = $_BACKEND->getBackend($backend_id)->getObjects($type, '', '',
$filter);
// only use the internal names
foreach ($ret AS $key => $val) {
@@ -34,10 +34,10 @@ function dynmap_get_objects($MAPCFG, $p) {
return $objects;
}
-function dynmap_program_start($p) {
+function dynmap_program_start($MAPCFG, $p) {
global $_BACKEND;
$newest = null;
- foreach($p['backend_id'] AS $backend_id) {
+ foreach($MAPCFG->getValue(0, 'backend_id') AS $backend_id) {
$this_start = $_BACKEND->getBackend($backend_id)->getProgramStart();
if($newest === null || $this_start > $newest) {
$newest = $this_start;
@@ -197,7 +197,7 @@ function process_dynmap($MAPCFG, $map_name, &$map_config) {
function changed_dynmap($MAPCFG, $compare_time) {
$params = $MAPCFG->getSourceParams();
- $t = dynmap_program_start($params);
+ $t = dynmap_program_start($MAPCFG, $params);
if($t > $compare_time)
return true;
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins