From 7445f2f56d49af1c255de8cb89062912599b7cc3 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Sun, 14 Jan 2018 14:35:06 -0500 Subject: [PATCH] Point to the master database rather than the read-only database. Because of a misconfiguration in GenaSYS (since fixed), the QR configuration file pulled the reports *database* connection info rather than the *state_store* (e.g. master) database. Fixed with this change. Signed-off-by: Chris Sharp --- models/openilsConfig.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/models/openilsConfig.class.php b/models/openilsConfig.class.php index 7064b86..0868002 100644 --- a/models/openilsConfig.class.php +++ b/models/openilsConfig.class.php @@ -11,11 +11,11 @@ class openilsConfig { } if (QR_PGSQL_USE_OPENSRF_XML_CONFIG) { - define ('QR_PGSQL_HOST', $xml->default->reporter->setup->database->host); - define ('QR_PGSQL_PORT', $xml->default->reporter->setup->database->port); - define ('QR_PGSQL_DBNAME', $xml->default->reporter->setup->database->db); - define ('QR_PGSQL_USER', $xml->default->reporter->setup->database->user); - define ('QR_PGSQL_PASSWORD', $xml->default->reporter->setup->database->pw); + define ('QR_PGSQL_HOST', $xml->default->reporter->setup->state_store->host); + define ('QR_PGSQL_PORT', $xml->default->reporter->setup->state_store->port); + define ('QR_PGSQL_DBNAME', $xml->default->reporter->setup->state_store->db); + define ('QR_PGSQL_USER', $xml->default->reporter->setup->state_store->user); + define ('QR_PGSQL_PASSWORD', $xml->default->reporter->setup->state_store->pw); } if (QR_MEMCACHE_USE_OPENSRF_XML_CONFIG) { -- 2.11.0