From d572e73605022b6f178880c924ec105f2799e0c4 Mon Sep 17 00:00:00 2001 From: Thoronador Date: Mon, 20 Jul 2015 23:39:15 +0200 Subject: [PATCH] fix used name of text for multiple choice polls --- www/applets/poll-system.php | 2 +- www/data/polls.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/applets/poll-system.php b/www/applets/poll-system.php index c5a3f8b..792ed55 100644 --- a/www/applets/poll-system.php +++ b/www/applets/poll-system.php @@ -178,7 +178,7 @@ elseif (isset($poll_arr['poll_id']) && !checkVotedPoll($poll_arr['poll_id'])) { - $poll_arr['poll_type_text'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choise") : $FD->text("frontend", "single_choice"); + $poll_arr['poll_type_text'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choice") : $FD->text("frontend", "single_choice"); $index2 = $FD->db()->conn()->query('SELECT * FROM '.$FD->env('DB_PREFIX').'poll_answers WHERE poll_id = '.$poll_arr['poll_id'].' ORDER BY answer_id ASC'); initstr($antworten); diff --git a/www/data/polls.php b/www/data/polls.php index 2202d07..ed144b0 100644 --- a/www/data/polls.php +++ b/www/data/polls.php @@ -35,7 +35,7 @@ function get_poll_list_arrows ( $SORT, $GET_SORT, $GET_ORDER ) { { $poll_arr['poll_start'] = date_loc ( $FD->config('date') , $poll_arr['poll_start']); $poll_arr['poll_end'] = date_loc ( $FD->config('date') , $poll_arr['poll_end']); - $poll_arr['poll_type'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choise") : $FD->text("frontend", "single_choice"); + $poll_arr['poll_type'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choice") : $FD->text("frontend", "single_choice"); // all votes $index = $FD->db()->conn()->query ( " SELECT SUM(`answer_count`) AS 'all_votes' @@ -137,7 +137,7 @@ function get_poll_list_arrows ( $SORT, $GET_SORT, $GET_ORDER ) { $poll_arr['poll_url'] = url('polls', array('id' => $poll_arr['poll_id'])); $poll_arr['poll_start'] = date_loc ( $FD->config('date') , $poll_arr['poll_start'] ); $poll_arr['poll_end'] = date_loc ( $FD->config('date') , $poll_arr['poll_end'] ); - $poll_arr['poll_type'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choise") : $FD->text("frontend", "single_choice"); + $poll_arr['poll_type'] = ( $poll_arr['poll_type'] == 1 ) ? $FD->text("frontend", "multiple_choice") : $FD->text("frontend", "single_choice"); // all votes $index2 = $FD->db()->conn()->query ( "