[dw-free] Business statistics
[commit: http://hg.dwscoalition.org/dw-free/rev/d869e1462b6c]
http://bugs.dwscoalition.org/show_bug.cgi?id=124
Explicitly tell the routing system that these output pngs. (Works without,
but better with)
Patch by
anarres.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=124
Explicitly tell the routing system that these output pngs. (Works without,
but better with)
Patch by
Files modified:
- cgi-bin/DW/Controller/Graphs.pm
--------------------------------------------------------------------------------
diff -r fecfa5b4646a -r d869e1462b6c cgi-bin/DW/Controller/Graphs.pm
--- a/cgi-bin/DW/Controller/Graphs.pm Tue Sep 14 13:42:00 2010 +0800
+++ b/cgi-bin/DW/Controller/Graphs.pm Tue Sep 14 13:45:39 2010 +0800
@@ -38,18 +38,20 @@ use DW::Routing;
use DW::Routing;
use DW::Graphs;
-DW::Routing->register_string("/stats/accounts_by_type", \&accounts_by_type, app => 1);
+DW::Routing->register_string("/stats/accounts_by_type",
+ \&accounts_by_type, app => 1, format=>'png');
DW::Routing->register_string("/stats/active_community_accounts",
- \&active_community_accounts, app => 1);
+ \&active_community_accounts, app => 1, format=>'png');
DW::Routing->register_string("/stats/active_identity_accounts",
- \&active_identity_accounts, app => 1);
+ \&active_identity_accounts, app => 1, format=>'png');
DW::Routing->register_string("/stats/active_personal_accounts",
- \&active_personal_accounts, app => 1);
+ \&active_personal_accounts, app => 1, format=>'png');
-DW::Routing->register_string("/stats/paid_accounts", \&paid_accounts, app => 1);
+DW::Routing->register_string("/stats/paid_accounts",
+ \&paid_accounts, app => 1, format=>'png');
=head2 C<< DW::Controller::Graphs::accounts_by_type( ) >>
--------------------------------------------------------------------------------
