aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2006-08-20 00:20:23 +0000
committerwurblzap%gmail.com <>2006-08-20 00:20:23 +0000
commit0ee4621e7828a205189368aa9b8a515574d9c030 (patch)
tree93caacf40fc87a27e224e8fefa6b7284e686e918 /collectstats.pl
parentBug 349198: 001compile.t must not compile mod_perl.pl - Patch by Frédéric B... (diff)
downloadbugzilla-0ee4621e7828a205189368aa9b8a515574d9c030.tar.gz
bugzilla-0ee4621e7828a205189368aa9b8a515574d9c030.tar.bz2
bugzilla-0ee4621e7828a205189368aa9b8a515574d9c030.zip
Bug 224577: Bugzilla could use a web services interface.
Patch by Marc Schumann <wurblzap@gmail.com>; r=mkanat; a=myk
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-xcollectstats.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/collectstats.pl b/collectstats.pl
index 1672f679a..50bbf6425 100755
--- a/collectstats.pl
+++ b/collectstats.pl
@@ -55,8 +55,9 @@ if (chdir("graphs")) {
chdir("..");
}
-# Let Throw*Error() work correctly outside a web browser.
-Bugzilla->batch(1);
+# This is a pure command line script.
+Bugzilla->usage_mode(USAGE_MODE_CMDLINE);
+
my $dbh = Bugzilla->switch_to_shadow_db();
# To recreate the daily statistics, run "collectstats.pl --regenerate" .