summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authortara%tequilarista.org <>2000-10-31 04:17:43 +0100
committertara%tequilarista.org <>2000-10-31 04:17:43 +0100
commitff238d36024ea1e58d8cfa1c797487c313b4d8d7 (patch)
treec3bc9ffc8b27ca7422463ec83bcfb9cc65e84f2e /globals.pl
parentbac12bd6b225e35cbae8ed306a466e576ce52e66 (diff)
downloadbugzilla-ff238d36024ea1e58d8cfa1c797487c313b4d8d7.tar.gz
bugzilla-ff238d36024ea1e58d8cfa1c797487c313b4d8d7.tar.xz
correcting scope
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl14
1 files changed, 7 insertions, 7 deletions
diff --git a/globals.pl b/globals.pl
index e1dab238d..f8bb4e217 100644
--- a/globals.pl
+++ b/globals.pl
@@ -54,10 +54,10 @@ sub globals_pl_sillyness {
# here
#
-my $db_host = "localhost";
-my $db_name = "bugs";
-my $db_user = "bugs";
-my $db_pass = "";
+$::db_host = "localhost";
+$::db_name = "bugs";
+$::db_user = "bugs";
+$::db_pass = "";
do 'localconfig';
@@ -84,13 +84,13 @@ $::superusergroupset = "9223372036854775807";
sub ConnectToDatabase {
my ($useshadow) = (@_);
if (!defined $::db) {
- my $name = $db_name;
+ my $name = $::db_name;
if ($useshadow && Param("shadowdb") && Param("queryagainstshadowdb")) {
$name = Param("shadowdb");
$::dbwritesallowed = 0;
}
- $::db = DBI->connect("DBI:mysql:host=$db_host;database=$name", $db_user, $db_pass)
- || die "Can't connect to database server.";
+ $::db = DBI->connect("DBI:mysql:host=$::db_host;database=$name", $::db_user, $::db_pass)
+ || die "Can't connect to database server.\n";
}
}