summaryrefslogtreecommitdiffstats
path: root/pages/challengelist.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-01-25 16:57:18 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-01-25 16:57:18 -0800
commitf83929347be13726a9e7728868c8120fdc86a188 (patch)
tree831c95a98342f0c2ecb315898addc08419d8933c /pages/challengelist.php
parentfed89ebc174dda0963856f992f6f9a26bbe1b182 (diff)
downloadpathery-f83929347be13726a9e7728868c8120fdc86a188.tar.xz
`challengeMaps` table added; start of the required code changes.
Diffstat (limited to 'pages/challengelist.php')
-rw-r--r--pages/challengelist.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/pages/challengelist.php b/pages/challengelist.php
index db20081..364209f 100644
--- a/pages/challengelist.php
+++ b/pages/challengelist.php
@@ -70,13 +70,14 @@ function ChallengeList($challengeListResultset) {
foreach ($challengeMap as $challengeSuborder => $challenge) {
//Hack to get the first element of the array:
$firstChallenge = $challenge[key($challenge)];
- $mapid = $firstChallenge['mapID'];
+ $challengeMapID = $firstChallenge['challengeMapID'];
- $mapCode = getMapCode($mapid);
+ //$mapCode = getMapCode($mapid);
+ $mapCode = $firstChallenge['mapCode'];
$map = new map($mapCode);
$thumbnail = DisplayMapThumbnail($map);
- $r .= "<div class='challengelist_map' onclick='document.location.href=\"challenge?mapID=$mapid\"'>";
+ $r .= "<div class='challengelist_map' onclick='document.location.href=\"challenge?challengeMapID=$challengeMapID\"'>";
$r .= "$map->name";
$r .= $thumbnail;