summaryrefslogtreecommitdiffstats
path: root/do.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2012-09-30 21:48:56 -0700
committerPatrick Davison <snapwilliam@gmail.com>2012-09-30 21:48:56 -0700
commitbc456f1ef6a74a74e821304df1a08a5aeb341f7a (patch)
treea36e8a4ff2dadbfda7a94d0ca849bab8b6786086 /do.php
parentbe06cd9fdc0253b5fdf2fb17de4aac6f10bff80c (diff)
parent60c8232de409d0cb6de37ef87a489049f060003d (diff)
downloadpathery-bc456f1ef6a74a74e821304df1a08a5aeb341f7a.tar.xz
Merge branch 'HEAD' of ssh://git@git.raylu.net/pathery
Diffstat (limited to 'do.php')
-rw-r--r--do.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/do.php b/do.php
index 4e0b88d..0cb1169 100644
--- a/do.php
+++ b/do.php
@@ -215,9 +215,8 @@ if ($_GET['r'] == 'getpath') {
// --------- USER LOGGED IN
//Challenge/Tutorial?
- if ($mapID <= 10 AND $_GET['isChallenge'] = 'true') {
- //echo "running function".$_GET['challengeID'];
- applyChallengeAchievements($userID, $_GET['challengeID'], $mapID, $solution, $moves);
+ if ($_GET['isChallenge'] == 'true') {
+ checkForCompletedChallenges($userID, $mapID, $solution, $moves, $json['path']);
return;
}