Browse Source

Renommage de la méthode loadLogs() pour flushLogs() dans le Logger

Simounet 3 years ago
parent
commit
95d7b72ed5
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Logger.class.php
  2. 1 1
      settings.php

+ 1 - 1
Logger.class.php

@@ -18,7 +18,7 @@ class Logger {
         $this->logs[] = $msg;
     }
 
-    public function loadLogs()
+    public function flushLogs()
     {
         $logs = $this->getLogs();
         $this->destroy();

+ 1 - 1
settings.php

@@ -9,7 +9,7 @@
 require_once('header.php');
 
 $logger = new Logger('settings');
-$tpl->assign('logs',$logger->loadLogs());
+$tpl->assign('logs',$logger->flushLogs());
 
 // gestion de la langue
 $languageList = $i18n->languages;