| @@ 549-552 (lines=4) @@ | ||
| 546 | if (allowedTo('calendar_view') && !empty($modSettings['cal_showInTopic']) && !empty($modSettings['cal_enabled'])) |
|
| 547 | { |
|
| 548 | // First, try create a better time format, ignoring the "time" elements. |
|
| 549 | if (preg_match('~%[AaBbCcDdeGghjmuYy](?:[^%]*%[AaBbCcDdeGghjmuYy])*~', $user_info['time_format'], $matches) == 0 || empty($matches[0])) |
|
| 550 | $date_string = $user_info['time_format']; |
|
| 551 | else |
|
| 552 | $date_string = $matches[0]; |
|
| 553 | ||
| 554 | // Any calendar information for this topic? |
|
| 555 | $request = $smcFunc['db_query']('', ' |
|
| @@ 123-126 (lines=4) @@ | ||
| 120 | } |
|
| 121 | ||
| 122 | // Create a date string so we don't overload them with date info. |
|
| 123 | if (preg_match('~%[AaBbCcDdeGghjmuYy](?:[^%]*%[AaBbCcDdeGghjmuYy])*~', $user_info['time_format'], $matches) == 0 || empty($matches[0])) |
|
| 124 | $context['ban_time_format'] = $user_info['time_format']; |
|
| 125 | else |
|
| 126 | $context['ban_time_format'] = $matches[0]; |
|
| 127 | ||
| 128 | $listOptions = array( |
|
| 129 | 'id' => 'ban_list', |
|