Skip to content

Commit 2dca124

Browse files
authored
Merge pull request #669 from TheByKotik/v1.x
2 parents a7de6e4 + fcb2cc0 commit 2dca124

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

web/configs/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": "1.7.0",
3-
"git": "957",
3+
"git": "959",
44
"dev": true
55
}

web/init.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@
3434
define('SCRIPT_PATH', ROOT . 'scripts');
3535
define('TEMPLATES_PATH', ROOT . 'pages');
3636
define('INCLUDES_PATH', ROOT . 'includes');
37+
define('SB_MAP_LOCATION', 'images/maps');
3738
define('SB_DEMO_LOCATION', 'demos');
3839
define('SB_ICON_LOCATION', 'images/games');
39-
define('SB_MAP_LOCATION', ROOT . 'images/maps');
40-
define('SB_ICONS', ROOT . SB_ICON_LOCATION);
40+
define('SB_MAPS', ROOT . SB_MAP_LOCATION);
4141
define('SB_DEMOS', ROOT . SB_DEMO_LOCATION);
42+
define('SB_ICONS', ROOT . SB_ICON_LOCATION);
4243

4344
define('SB_THEMES', ROOT . 'themes/');
4445
define('SB_CACHE', ROOT . 'cache/');

web/pages/admin.uploadmapimg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
$message = "";
3030
if (isset($_POST['upload'])) {
3131
if (checkExtension($_FILES['mapimg_file']['name'], ['jpg'])) {
32-
move_uploaded_file($_FILES['mapimg_file']['tmp_name'], SB_MAP_LOCATION . "/" . $_FILES['mapimg_file']['name']);
32+
move_uploaded_file($_FILES['mapimg_file']['tmp_name'], SB_MAPS . "/" . $_FILES['mapimg_file']['name']);
3333
$message = "<script>window.opener.mapimg('" . $_FILES['mapimg_file']['name'] . "');self.close()</script>";
3434
Log::add("m", "Map Image Uploaded", "A new map image has been uploaded: $_FILES[mapimg_file][name]");
3535
} else {

0 commit comments

Comments
 (0)