mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-27 13:38:54 -04:00
ajout export au format Uniflux
This commit is contained in:
1 parent
c22fd80f99
commit
f528d2c315
4 files changed
+58
-5
No files matched your search
+10
-5
@@ -250,12 +250,17 @@ class EntryDAO extends Model_pdo {
|
||||
$res = $stm->fetchAll (PDO::FETCH_ASSOC);
|
||||
$this->nbItems = $res[0]['count'];
|
||||
|
||||
$deb = ($this->currentPage - 1) * $this->nbItemsPerPage;
|
||||
$fin = $this->nbItemsPerPage;
|
||||
if($this->nbItemsPerPage < 0) {
|
||||
$sql = 'SELECT * FROM entry' . $where
|
||||
. ' ORDER BY date' . $order;
|
||||
} else {
|
||||
$deb = ($this->currentPage - 1) * $this->nbItemsPerPage;
|
||||
$fin = $this->nbItemsPerPage;
|
||||
|
||||
$sql = 'SELECT * FROM entry' . $where
|
||||
. ' ORDER BY date' . $order
|
||||
. ' LIMIT ' . $deb . ', ' . $fin;
|
||||
$sql = 'SELECT * FROM entry' . $where
|
||||
. ' ORDER BY date' . $order
|
||||
. ' LIMIT ' . $deb . ', ' . $fin;
|
||||
}
|
||||
$stm = $this->bd->prepare ($sql);
|
||||
|
||||
$stm->execute ();
|
||||
|
||||
Reference in new issue
Block a user