diff options
Diffstat (limited to 'plugins/Goals/Goals.php')
-rw-r--r-- | plugins/Goals/Goals.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Goals/Goals.php b/plugins/Goals/Goals.php index 39a7c0b2dc..381c37f7ee 100644 --- a/plugins/Goals/Goals.php +++ b/plugins/Goals/Goals.php @@ -135,7 +135,8 @@ class Goals extends \Piwik\Plugin */ public function deleteSiteGoals($idSite) { - Db::query("DELETE FROM " . Common::prefixTable('goal') . " WHERE idsite = ? ", array($idSite)); + $model = new Model(); + $model->deleteGoalsForSite($idSite); } /** |