Commit 66f7e1e5 authored by ale's avatar ale

Mark noblogs_config as global

parent 66a9073f
Pipeline #998 passed with stages
in 1 minute and 43 seconds
......@@ -2,6 +2,7 @@
function noblogs_load_backends($hashptr) {
global $wpdb;
global $noblogs_config;
$backend_map = array();
foreach ($noblogs_config['db_config']['backends'] as $backend_name => $backend) {
$b = array(
......@@ -23,6 +24,7 @@ function noblogs_load_backends($hashptr) {
function noblogs_load_global_dataset() {
global $wpdb;
global $noblogs_config;
$master = $noblogs_config['db_config']['master'];
if ($noblogs_config['db_config']['is_master']) {
$wpdb->add_database(array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment