@@ -90,11 +90,11 @@ public function __construct($host = "", $user = "", $password = "", $database =
90
90
$ this ->host = $ host ;
91
91
$ this ->SQLite = true ;
92
92
if (!file_exists ($ host ) && !@touch ($ host ))
93
- throw new SSQLException ("(__construct): Can’t create SQLite database " );
93
+ throw new SSQLException ("(__construct): Cannot create SQLite database " );
94
94
try {
95
95
$ this ->connect = @new PDO ("sqlite: " . $ host );
96
96
} catch (PDOException $ e ) {
97
- throw new SSQLException ("(__construct): Can’t connect to SQLite: " . $ e ->getMessage ());
97
+ throw new SSQLException ("(__construct): Cannot connect to SQLite: " . $ e ->getMessage ());
98
98
};
99
99
return true ;
100
100
};
@@ -108,16 +108,16 @@ public function __construct($host = "", $user = "", $password = "", $database =
108
108
if (!$ this ->query ("
109
109
CREATE DATABASE $ new
110
110
" , "__construct " ))
111
- throw new SSQLException ("(__construct): Can’t create database " . $ new );
111
+ throw new SSQLException ("(__construct): Cannot create database " . $ new );
112
112
$ this ->connect = NULL ;
113
113
};
114
114
try {
115
115
$ this ->connect = @new PDO ("mysql: " . (empty ($ database ) ? "" : "dbname= " . $ database . "; " ) . "host= " . $ host . ";charset=utf8 " , $ user , $ password );
116
116
} catch (PDOException $ e ) {
117
- throw new SSQLException ("(__construct): Can’t connect to MySQL: " . $ e ->getMessage ());
117
+ throw new SSQLException ("(__construct): Cannot connect to MySQL: " . $ e ->getMessage ());
118
118
}
119
119
if ($ this ->connect ->errorCode () && $ this ->connect ) {
120
- throw new SSQLException ("(__construct): Can’t select MySQL database: " . $ this ->connect ->errorInfo ()[2 ]);
120
+ throw new SSQLException ("(__construct): Cannot select MySQL database: " . $ this ->connect ->errorInfo ()[2 ]);
121
121
$ this ->connect ->close ();
122
122
};
123
123
}
@@ -248,7 +248,7 @@ public function deleteDB($db, $flags) {
248
248
return true ;
249
249
}
250
250
else {
251
- throw new SSQLException ("(deleteDB): Can’t delete database " . $ db );
251
+ throw new SSQLException ("(deleteDB): Cannot delete database " . $ db );
252
252
return false ;
253
253
};
254
254
}
0 commit comments