mirror of
https://github.com/YunoHost-Apps/yourls_ynh.git
synced 2024-09-03 20:35:59 +02:00
31 lines
472 B
PHP
31 lines
472 B
PHP
<?php
|
|
|
|
class ezSQL_mysql_YOURLS extends ezSQL_mysql {
|
|
|
|
/**
|
|
* Return MySQL server version
|
|
*
|
|
* @since 1.7
|
|
*/
|
|
function mysql_version() {
|
|
return mysql_get_server_info( $this->dbh ) ;
|
|
}
|
|
|
|
/**
|
|
* Perform mySQL query
|
|
*
|
|
* Added to the original function: logging of all queries
|
|
*
|
|
* @since 1.7
|
|
*/
|
|
function query( $query ) {
|
|
|
|
// Keep history of all queries
|
|
$this->debug_log[] = $query;
|
|
|
|
// Original function
|
|
return parent::query( $query );
|
|
}
|
|
|
|
}
|
|
|