Skip to content

Commit

Permalink
Removed mediafonds context, use context of site.
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Aug 30, 2011
1 parent 714f2a8 commit 0ec237c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/mod_survey/models/m_survey.erl
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ survey_results(SurveyId, Context) ->
lists:flatten([ <<"user_id">>, <<"anonymous">>, <<"created">>
| [ answer_header(proplists:get_value(QId, Questions)) || QId <- QuestionIds ]
])
| [ user_answer_row(User, Created, Answers, QIds, QsB) || {User, Created, Answers} <- Grouped ]
| [ user_answer_row(User, Created, Answers, QIds, QsB, Context) || {User, Created, Answers} <- Grouped ]
];
undefined ->
[]
Expand Down Expand Up @@ -258,13 +258,13 @@ survey_results(SurveyId, Context) ->
}.


user_answer_row({user, User, Persistent}, Created, Answers, QuestionIds, Questions) ->
user_answer_row({user, User, Persistent}, Created, Answers, QuestionIds, Questions, Context) ->
[
User,
Persistent,
case Created of
undefined -> <<>>;
_ -> erlydtl_dateformat:format(Created, "Y-m-d H:i", z_context:new(mediafonds))
_ -> erlydtl_dateformat:format(Created, "Y-m-d H:i", Context)
end
| answer_row(Answers, QuestionIds, Questions)
].
Expand Down

0 comments on commit 0ec237c

Please sign in to comment.