Index: trunk/extensions/OpenID/DatabaseConnection.php |
— | — | @@ -1,7 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | require_once( 'Auth/OpenID/DatabaseConnection.php' ); |
5 | | -require_once( 'PEAR.php' ); |
6 | 5 | |
7 | 6 | class MediaWikiOpenIDDatabaseConnection extends Auth_OpenID_DatabaseConnection { |
8 | 7 | |
— | — | @@ -20,16 +19,11 @@ |
21 | 20 | } |
22 | 21 | |
23 | 22 | function query( $sql, $params = array() ) { |
24 | | - try { |
25 | | - $res = $this->db->safeQuery( $sql, $params ); |
26 | | - } catch( DBQueryError $e ) { |
27 | | - $ret = PEAR::raiseError( $e->getMessage(), 1, PEAR_ERROR_RETURN ); |
28 | | - } |
29 | | - return $res; |
| 23 | + return $this->db->safeQuery( $sql, $params ); |
30 | 24 | } |
31 | 25 | |
32 | 26 | function begin() { |
33 | | - $this->db->commit(); |
| 27 | + $this->db->begin(); |
34 | 28 | } |
35 | 29 | |
36 | 30 | function commit() { |