diff options
Diffstat (limited to 'core/Db')
-rw-r--r-- | core/Db/Adapter.php | 3 | ||||
-rw-r--r-- | core/Db/Schema/Myisam.php | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/core/Db/Adapter.php b/core/Db/Adapter.php index de3412e9a6..db9214b82a 100644 --- a/core/Db/Adapter.php +++ b/core/Db/Adapter.php @@ -8,6 +8,7 @@ * @category Piwik * @package Piwik */ +use Piwik\Loader; /** * @package Piwik @@ -39,7 +40,7 @@ class Piwik_Db_Adapter } $className = self::getAdapterClassName($adapterName); - Piwik_Loader::loadClass($className); + Loader::loadClass($className); /* * 5.2.1 fixes various bugs with references that caused PDO_MYSQL getConnection() diff --git a/core/Db/Schema/Myisam.php b/core/Db/Schema/Myisam.php index a0eb2a7038..274e6f82e0 100644 --- a/core/Db/Schema/Myisam.php +++ b/core/Db/Schema/Myisam.php @@ -11,6 +11,7 @@ use Piwik\Config; use Piwik\Piwik; use Piwik\Common; +use Piwik\Date; /** * MySQL schema @@ -535,7 +536,7 @@ class Piwik_Db_Schema_Myisam implements Piwik_Db_Schema_Interface // note that the token_auth value is anonymous, which is assigned by default as well in the Login plugin $db = Zend_Registry::get('db'); $db->query("INSERT INTO " . Common::prefixTable("user") . " - VALUES ( 'anonymous', '', 'anonymous', 'anonymous@example.org', 'anonymous', '" . Piwik_Date::factory('now')->getDatetime() . "' );"); + VALUES ( 'anonymous', '', 'anonymous', 'anonymous@example.org', 'anonymous', '" . Date::factory('now')->getDatetime() . "' );"); } /** |