From b6d9a4aa79763981c524b3915ab11e449cad4c42 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 24 Jun 2007 11:30:20 +0200 Subject: CLEANUP: get card names from the database --- output.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'output.php') diff --git a/output.php b/output.php index fe4a971..f22c6df 100644 --- a/output.php +++ b/output.php @@ -179,9 +179,9 @@ function display_card($card,$dir="english") * convert even cards to the matching odd value */ if( $card/2 - (int)($card/2) == 0.5) - echo "\"".card_to_name($card)."\"\n"; + echo "\"".DB_get_card_name($card)."\"\n"; else - echo "\"".card_to_name($card-1)."\"\n"; + echo "\"".DB_get_card_name($card-1)."\"\n"; return; } @@ -189,9 +189,9 @@ function display_card($card,$dir="english") function display_link_card($card,$dir="english",$type="card") { if( $card/2 - (int)($card/2) == 0.5) - echo "
\"\"
\n"; + echo "
\"".DB_get_card_name($card)."\"
\n"; else - echo "
\"\"
\n"; + echo "
\"".DB_get_card_name($card-1)."\"
\n"; return; } -- cgit v1.2.3-18-g5258