1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Added Popular books list with relevant tests

This commit is contained in:
Dan Brown
2015-12-02 20:22:41 +00:00
parent 9f435553dc
commit f1c2866fbc
7 changed files with 117 additions and 8 deletions

View File

@ -77,6 +77,11 @@ class BookRepo
return Views::getUserRecentlyViewed($count, $page, $this->book);
}
public function getPopular($count = 10, $page = 0)
{
return Views::getPopular($count, $page, $this->book);
}
/**
* Get a book by slug
* @param $slug