From 8326c555bdc083fa6fc538db7724d9f0151f9c29 Mon Sep 17 00:00:00 2001 From: mattpiwik Date: Tue, 22 Jul 2008 22:34:48 +0000 Subject: - you can now Piwik_LogStats::getDb() from your plugin to get the Db object git-svn-id: http://dev.piwik.org/svn/trunk@568 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- modules/LogStats.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/LogStats.php') diff --git a/modules/LogStats.php b/modules/LogStats.php index fe059138b2..cd50980058 100644 --- a/modules/LogStats.php +++ b/modules/LogStats.php @@ -100,6 +100,11 @@ class Piwik_LogStats self::$db->connect(); } + + public static function getDb() + { + return self::$db; + } static function disconnectDb() { @@ -279,6 +284,8 @@ class Piwik_LogStats { header($header); } + + } function printDebug( $info = '' ) -- cgit v1.2.3