From: <var...@us...> - 2014-11-18 17:06:24
|
Revision: 9331 http://sourceforge.net/p/phpwiki/code/9331 Author: vargenau Date: 2014-11-18 17:06:22 +0000 (Tue, 18 Nov 2014) Log Message: ----------- Allow PDO. Modified Paths: -------------- trunk/lib/Request.php Modified: trunk/lib/Request.php =================================================================== --- trunk/lib/Request.php 2014-11-18 16:26:56 UTC (rev 9330) +++ trunk/lib/Request.php 2014-11-18 17:06:22 UTC (rev 9331) @@ -855,10 +855,10 @@ register_shutdown_function("Request_AccessLogEntry_shutdown_function"); if ($do_sql) { - global $DBParams; - if (!in_array($DBParams['dbtype'], array('SQL', 'ADODB'))) { - trigger_error("Unsupported database backend for ACCESS_LOG_SQL. Need DATABASE_TYPE=SQL or ADODB."); + if (!$request->_dbi->isSQL()) { + trigger_error("Unsupported database backend for ACCESS_LOG_SQL. Need DATABASE_TYPE=SQL or ADODB or PDO."); } else { + global $DBParams; //$this->_dbi =& $request->_dbi; $this->logtable = (!empty($DBParams['prefix']) ? $DBParams['prefix'] : '') . "accesslog"; } @@ -944,7 +944,8 @@ } /** - * Read sequentially all previous entries from log file. + * Read sequentially backwards all previous entries from log file. + * FIXME! */ function read_file() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |