From 7c6f2e29ae4e80c58f9265f9d533cb69ffebe1e1 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Tue, 6 May 2014 11:58:15 +0800 Subject: [PATCH] MDL-45412 Cache: Look for the newer classname first (mongo store) --- cache/stores/mongodb/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/stores/mongodb/lib.php b/cache/stores/mongodb/lib.php index 0213b7f86ec..f30323d37bd 100644 --- a/cache/stores/mongodb/lib.php +++ b/cache/stores/mongodb/lib.php @@ -166,7 +166,7 @@ class cachestore_mongodb extends cache_store implements cache_is_configurable { * @return bool */ public static function are_requirements_met() { - return class_exists('Mongo'); + return class_exists('MongoClient') || class_exists('Mongo'); } /**