summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/mapeditor.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/pages/mapeditor.php b/pages/mapeditor.php
index 402f2d6..87fef32 100644
--- a/pages/mapeditor.php
+++ b/pages/mapeditor.php
@@ -17,7 +17,8 @@ if ($_REQUEST['mapByMap']) {
$map->$key = $value;
}
//Store the code in the object
- $map->getCode();
+ $code = $map->getOldCode();
+ $map->code = $code;
echo json_encode($map);
exit;
}