[icinga-checkins] icinga.org: icingaweb2/feature/livestatus-playground-4787: Db\DbQuery: do not expose applyFilterSql

git at icinga.org git at icinga.org
Sun Nov 16 17:17:21 CET 2014


Module: icingaweb2
Branch: feature/livestatus-playground-4787
Commit: b2a55f09982cb77a36941721f8eb2a51cc6c217b
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=b2a55f09982cb77a36941721f8eb2a51cc6c217b

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sun Nov 16 17:09:51 2014 +0100

Db\DbQuery: do not expose applyFilterSql

---

 library/Icinga/Data/Db/DbQuery.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/library/Icinga/Data/Db/DbQuery.php b/library/Icinga/Data/Db/DbQuery.php
index a7cf514..e89236d 100644
--- a/library/Icinga/Data/Db/DbQuery.php
+++ b/library/Icinga/Data/Db/DbQuery.php
@@ -134,11 +134,11 @@ class DbQuery extends SimpleQuery
         return $select;
     }
 
-    public function applyFilterSql($query)
+    protected function applyFilterSql($select)
     {
         $where = $this->renderFilter($this->filter);
         if ($where !== '') {
-            $query->where($where);
+            $select->where($where);
         }
     }
 



More information about the icinga-checkins mailing list