Skip to content
Extraits de code Groupes Projets
Valider bf61accf rédigé par mattab's avatar mattab
Parcourir les fichiers

Fixing bug in Deleting old logs - This should have failed some test [alert]

parent eb820d0b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -115,7 +115,7 @@ class CoreAdminHome extends \Piwik\Plugin ...@@ -115,7 +115,7 @@ class CoreAdminHome extends \Piwik\Plugin
$archiveTables = ArchiveTableCreator::getTablesArchivesInstalled(); $archiveTables = ArchiveTableCreator::getTablesArchivesInstalled();
foreach ($archiveTables as $table) { foreach ($archiveTables as $table) {
$date = ArchiveTableCreator::getDateFromTableName($table); $date = ArchiveTableCreator::getDateFromTableName($table);
list($month, $year) = explode('_', $date); list($year, $month) = explode('_', $date);
ArchiveSelector::purgeOutdatedArchives(Date::factory("$year-$month-15")); ArchiveSelector::purgeOutdatedArchives(Date::factory("$year-$month-15"));
} }
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter