Skip to content
Snippets Groups Projects
Commit 42edf4ab authored by ale's avatar ale
Browse files

Fix for new ai3 noblogs_load_backends() signature

parent 22e9ccd8
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ function noblogs_get_backend_for_blog($blog_id) { ...@@ -33,7 +33,7 @@ function noblogs_get_backend_for_blog($blog_id) {
// (we cannot use the map in $wpdb because it doesn't have the // (we cannot use the map in $wpdb because it doesn't have the
// backend array anymore). // backend array anymore).
$hashmap = new Flexihash(null, R2DB_FLEXIHASH_REPLICAS); $hashmap = new Flexihash(null, R2DB_FLEXIHASH_REPLICAS);
$reversemap = noblogs_load_backends(NOBLOGS_BACKEND_CONFIG, $hashmap); $reversemap = noblogs_load_backends($hashmap);
// Lookup the blog ID using the $wpdb hash just to be safe (though // Lookup the blog ID using the $wpdb hash just to be safe (though
// we should get an identical result using $hashmap). // we should get an identical result using $hashmap).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment