Skip to content
Snippets Groups Projects
Commit 0cd22d7b authored by Tim Steiner's avatar Tim Steiner
Browse files

[gh-493] Consult sites/all/settings.php before sites/all/settings.php in unl_get_shared_db_prefix()

parent b4182141
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,10 @@ function unl_load_zend_framework() {
* Custom function to get the db prefix of the 'main' site.
*/
function unl_get_shared_db_prefix() {
require 'sites/default/settings.php';
if (file_exists(DRUPAL_ROOT . '/sites/all/settings.php')) {
require DRUPAL_ROOT . '/sites/all/settings.php';
}
require DRUPAL_ROOT . '/sites/default/settings.php';
$shared_prefix = $databases['default']['default']['prefix'];
return $shared_prefix;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment