]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/api/controllers/History.php
Merge pull request #861 from ArthurHoaro/hotfix/import-shorturl-override
[github/shaarli/Shaarli.git] / application / api / controllers / History.php
index c4ff3e5dfecd77ca8724192f5ce3a192d4ab8919..2ff9deaf24d98f4fb1f43356184fdd69996c223a 100644 (file)
@@ -28,8 +28,7 @@ class History extends ApiController
      */
     public function getHistory($request, $response)
     {
-        $history = (new \History($this->conf->get('resource.history')))->getHistory();
-        $history = array_reverse($history);
+        $history = $this->history->getHistory();
 
         // Return history operations from the {offset}th, starting from {since}.
         $since = \DateTime::createFromFormat(\DateTime::ATOM, $request->getParam('since'));