diff --git a/Repositories/statistics/htdocs/download_by_dept.php b/Repositories/statistics/htdocs/download_by_dept.php index 457e964..003f221 100755 --- a/Repositories/statistics/htdocs/download_by_dept.php +++ b/Repositories/statistics/htdocs/download_by_dept.php @@ -19,14 +19,14 @@ /* $sql->setDebug($GLOBALS["config_vars"]["debug"][$GLOBALS["config_vars"]["thisrequest"]]); */ $connection_archive = $sql_archive->doConnectServer - ( $GLOBALS["config_vars"]["connections"]["sqlserver_eprints"], - $GLOBALS["config_vars"]["connections"]["sqluser_eprints"], - $GLOBALS["config_vars"]["connections"]["sqlpass_eprints"] + ( $GLOBALS["config_vars"]["connections"]["eprints_archives"]["otago_eprints"]["sqlserver_eprints"], + $GLOBALS["config_vars"]["connections"]["eprints_archives"]["otago_eprints"]["sqluser_eprints"], + $GLOBALS["config_vars"]["connections"]["eprints_archives"]["otago_eprints"]["sqlpass_eprints"] ); if (!$connection_archive) error($GLOBALS["config_vars"]["messages"]["message_noservice"] ,ERROR_EXIT); -$db_archive = $sql_archive->doConnectDb($GLOBALS["config_vars"]["connections"]["sqldatabase_eprints"]); +$db_archive = $sql_archive->doConnectDb($GLOBALS["config_vars"]["connections"]["eprints_archives"]["otago_eprints"]["sqluser_eprints"]); if (!$db_archive) { error($GLOBALS["config_vars"]["messages"]["message_noservice"],ERROR_EXIT);