From 9830f14208beea5604512b0be9b9f12fa03bae35 Mon Sep 17 00:00:00 2001 From: "B.J. Rossiter" Date: Thu, 28 Feb 2013 09:08:23 +1100 Subject: [PATCH] More tweaking of mongo driver --- src/DGM/Database/MongoDB.php | 2 +- web/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DGM/Database/MongoDB.php b/src/DGM/Database/MongoDB.php index 7128c50..709f3e3 100644 --- a/src/DGM/Database/MongoDB.php +++ b/src/DGM/Database/MongoDB.php @@ -10,7 +10,7 @@ class MongoDB { public function __construct($dbname, $connectionString) { - $this->mongo = new \Mongo($connectionString); + $this->mongo = new \MongoClient($connectionString); $this->mongoDb = $this->mongo->selectDb($dbname); } diff --git a/web/index.php b/web/index.php index 588e3e8..5b33a9a 100644 --- a/web/index.php +++ b/web/index.php @@ -13,7 +13,7 @@ 'gitHash' => `git rev-parse HEAD`, 'buildId' => substr(`git rev-parse HEAD`, 0, 16), 'categories' => Util::loadJSONFile(__DIR__ . '/../resources/categories.json'), - 'db' => 'mongodb://heroku:4acba4a42863ba17b18dd350af109785@juliet.mongohq.com:10059', + 'db' => 'mongodb://heroku:4acba4a42863ba17b18dd350af109785@juliet.mongohq.com:10059/app12425727', 'dbname' => 'app12425727', 'assetHost' => 'http://9d13444fc29e94942058-e7acde355f751313b3672e46489208df.r75.cf1.rackcdn.com' ];