From 55ed785d7a381f24731e08a72d981cb59c12931c Mon Sep 17 00:00:00 2001 From: ThinkPHP Date: Fri, 19 Apr 2013 11:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Mongo=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Think/Db/Driver/Mongo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Think/Db/Driver/Mongo.php b/Library/Think/Db/Driver/Mongo.php index 87a909ff..e17cbf77 100644 --- a/Library/Think/Db/Driver/Mongo.php +++ b/Library/Think/Db/Driver/Mongo.php @@ -50,7 +50,7 @@ class Mongo extends Driver { if(empty($config)) $config = $this->config['connection']; $host = 'mongodb://'.($config['username']?"{$config['username']}":'').($config['password']?":{$config['password']}@":'').$config['hostname'].($config['hostport']?":{$config['hostport']}":'').'/'.($config['database']?"{$config['database']}":''); try{ - $this->linkID[$linkNum] = new mongoClient( $host,$this->config['params']); + $this->linkID[$linkNum] = new \mongoClient( $host,$this->config['params']); }catch (\MongoConnectionException $e){ E($e->getmessage()); }