MDL-45412 Cache: Look for the newer classname first (mongo store)

This commit is contained in:
Damyon Wiese
2014-05-06 12:02:51 +08:00
parent 5684f787ee
commit b37c9cf233
+1 -1
View File
@@ -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');
}
/**