From 5aeaed897119ff1af4555ec93662d68c2252ba71 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 6 Nov 2016 11:24:51 +0100 Subject: PostgreSQL fix updateCachedValues https://github.com/FreshRSS/FreshRSS/issues/1360 --- app/Models/Factory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Models/Factory.php b/app/Models/Factory.php index 764987c46..b12f0cef9 100644 --- a/app/Models/Factory.php +++ b/app/Models/Factory.php @@ -7,6 +7,8 @@ class FreshRSS_Factory { switch ($conf->db['type']) { case 'sqlite': return new FreshRSS_FeedDAOSQLite($username); + case 'pgsql': + return new FreshRSS_FeedDAOSQLite($username); default: return new FreshRSS_FeedDAO($username); } -- cgit v1.2.3 From 34868cd2911523163c6732d58efa00d3fe322d4f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 6 Nov 2016 11:33:45 +0100 Subject: Switch simplify syntax --- app/Models/Factory.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Models/Factory.php b/app/Models/Factory.php index b12f0cef9..6502c38b7 100644 --- a/app/Models/Factory.php +++ b/app/Models/Factory.php @@ -6,7 +6,6 @@ class FreshRSS_Factory { $conf = Minz_Configuration::get('system'); switch ($conf->db['type']) { case 'sqlite': - return new FreshRSS_FeedDAOSQLite($username); case 'pgsql': return new FreshRSS_FeedDAOSQLite($username); default: -- cgit v1.2.3