Changeset 9745 for extensions/ContestResults/include/cr_main.php
- Timestamp:
- Mar 17, 2011, 8:25:13 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContestResults/include/cr_main.php
r9572 r9745 17 17 18 18 while ($contest = pwg_db_fetch_assoc($contests)) { 19 $contest = array_merge($contest, get_contest_status($contest['date_begin'],$contest['date_end'])); 20 19 21 if ($contest['visible'] OR is_admin()) { 20 $contest['finished'] = is_date_passed($contest['date_end']);21 22 22 // infos sur le concours 23 23 $item = array( … … 25 25 'NAME' => trigger_event('render_CR_content', $contest['name']), 26 26 'VISIBLE' => $contest['visible'], 27 ' FINISHED' => $contest['finished'],27 'STATUS' => $contest['status'], 28 28 'DATE_END' => format_date($contest['date_end']), 29 29 'DATE_BEGIN' => format_date($contest['date_begin']), 30 30 'LOGO' => $contest['logo'], 31 'SUMMARY' => CR_cut_string(trigger_event('render_CR_content', $contest['summary']), 350),31 'SUMMARY' => CR_cut_string(trigger_event('render_CR_content', $contest['summary']), $conf['ContestResults']['truncate_summary']), 32 32 'URL' => CR_PUBLIC . $contest['id'] . '-' . str2url(trigger_event('render_CR_content', $contest['name'])), 33 'DAYS' => DateDiff($contest['date_end'], date('Y-m-d')),33 'DAYS' => $contest['days'], 34 34 ); 35 35 36 36 // podium si terminé 37 if ($contest[' finished'] == true) {37 if ($contest['status'] == 'finished') { 38 38 $results = pwg_query("SELECT 39 39 i.id,
Note: See TracChangeset
for help on using the changeset viewer.