Deny april fools outside of first april.

This commit is contained in:
Petr Mrázek 2014-04-01 22:33:15 +02:00
parent 1ef6ec4178
commit 52ff6a4140

View File

@ -345,6 +345,13 @@ void VersionFinal::reapply(const bool alreadyReseting)
void VersionFinal::finalize()
{
// HACK: deny april fools. my head hurts enough already.
QDate now = QDate::currentDate();
bool isAprilFools = now.month() == 4 && now.day() == 1;
if (assets.endsWith("_af") && !isAprilFools)
{
assets = assets.left(assets.length() - 3);
}
if (assets.isEmpty())
{
assets = "legacy";