diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2007-08-01 22:05:00 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2007-08-01 22:05:00 +0400 |
commit | bf39418947240ecfb17b64ee50afeefc82ff933c (patch) | |
tree | b7dd3157eb906856f4b3b9703eb2e9ca1c348c51 /libs/Zend/Db/Adapter/Mysqli.php | |
parent | 01c888644ff655287e496741e137216e1d539ac1 (diff) |
- implemented basic plugin system in the piwik.php logging engine
- added some config for the loggingEngine
- wrote simple PDO access layer / simple config layer
- specified all the classes/method of the piwik.php
- ported the JS file from phpmyvisites and fixed some bugs in it (needs testing on IE/FF/OPERA/KONQUEROR/SAFARI on MAC/WINDOWS/LINUX with the plugins enabled/disabled)
git-svn-id: http://dev.piwik.org/svn/trunk@24 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'libs/Zend/Db/Adapter/Mysqli.php')
-rwxr-xr-x | libs/Zend/Db/Adapter/Mysqli.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libs/Zend/Db/Adapter/Mysqli.php b/libs/Zend/Db/Adapter/Mysqli.php index 51b8f29c27..903a8041be 100755 --- a/libs/Zend/Db/Adapter/Mysqli.php +++ b/libs/Zend/Db/Adapter/Mysqli.php @@ -243,9 +243,18 @@ class Zend_Db_Adapter_Mysqli extends Zend_Db_Adapter_Abstract $port = null; } + if(!class_exists("mysqli")) + { + /** + * @see Zend_Db_Adapter_Mysqli_Exception + */ + require_once 'Zend/Db/Adapter/Mysqli/Exception.php'; + throw new Zend_Db_Adapter_Mysqli_Exception("The extension mysqli is not installed."); + } + // Suppress connection warnings here. // Throw an exception instead. - @$this->_connection = new mysqli( + $this->_connection = new mysqli( $this->_config['host'], $this->_config['username'], $this->_config['password'], |