summaryrefslogtreecommitdiffstats
path: root/include/output.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2013-05-02 21:19:21 -0700
committerArun Persaud <arun@nubati.net>2013-05-02 21:20:10 -0700
commitd3841fcbcb98f5e2bbdeb7b89733b8757e848f20 (patch)
treeb18cb623298e64f910f7f3041cea3393cbc96a44 /include/output.php
parente6a828bc2f742e617842ff2ca3a9dbb812dab16a (diff)
downloade-DoKo-d3841fcbcb98f5e2bbdeb7b89733b8757e848f20.tar.gz
e-DoKo-d3841fcbcb98f5e2bbdeb7b89733b8757e848f20.tar.bz2
e-DoKo-d3841fcbcb98f5e2bbdeb7b89733b8757e848f20.zip
CLEANUP: GT,gametype,mygametype variable, make it translatable, some code cleanup
Diffstat (limited to 'include/output.php')
-rw-r--r--include/output.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/output.php b/include/output.php
index 0be920e..67c1870 100644
--- a/include/output.php
+++ b/include/output.php
@@ -640,7 +640,7 @@ function output_robotproof($i)
}
}
-function output_exchanged_cards()
+function output_exchanged_cards($gametype)
{
/* in a poverty game this function will output the exchanged cards
* players in the team will see the cards, the other team will see
@@ -648,7 +648,7 @@ function output_exchanged_cards()
*/
/* need some information about the game */
- global $gameid,$mygametype, $PREF,$me,$mystatus, $RULES;
+ global $gameid,$PREF,$me,$mystatus, $RULES;
/* some variables to track where the people with poverty are sitting */
$partnerpos1 = 0;
@@ -659,7 +659,7 @@ function output_exchanged_cards()
/* only need to do it in a poverty game, this might not be needed, but
* just to make sure everything is ok
*/
- if($mygametype == 'poverty' || $mygametype=='dpoverty')
+ if($gametype == 'poverty' || $gametype=='dpoverty')
{
/* find out who has poverty */
for($mypos=1;$mypos<5;$mypos++)
@@ -795,7 +795,7 @@ function output_exchanged_cards()
}
echo " </div>\n";
}
- if($mygametype == $usersick)
+ if($gametype == $usersick)
$show = 0;
}
}