Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Making fbctf great again #654

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

javuto
Copy link
Contributor

@javuto javuto commented Oct 14, 2018

Fixing several bugs and adding some changes that were added to the dev-lite in the main fbctf project. The commits that were added are:

Due to the lack of details provided with these commits, it requires some deep understanding of what is going on in the code to fully get what is done. They are a mix between an attempt to increase the performance and fix various bugs.

@@ -131,7 +131,7 @@ class="fb-cta cta--yellow">
$next_game_text = tr('Soon');
$countdown = array('--', '--', '--', '--');
} else {
$next_game_text = date(tr('date and time format'), $next_game);
$next_game_text = date('H:i:s T D m/d/y', $next_game);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes fbctf less customizable.

if we are not using a translation here, a constant string containing the format should be added to the controller ( e.g IndexController::NEXT_GAME_DATE_FORMAT )

if ($language === 'en' && $word != 'date and time format') { // temporary fix for
return $word; // reducing function calls to
} // tr()
elseif (array_key_exists($word, $lang)) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should be no language exception here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants