fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-10-30 04:47 am

[dw-free] Convert /admin/index to TT

[commit: http://hg.dwscoalition.org/dw-free/rev/e76254fdb530]

http://bugs.dwscoalition.org/show_bug.cgi?id=3164

Should be ->args, not ->arg.

Patch by [personal profile] exor674.

Files modified:
  • cgi-bin/DW/Routing.pm
--------------------------------------------------------------------------------
diff -r a00820bf2a26 -r e76254fdb530 cgi-bin/DW/Routing.pm
--- a/cgi-bin/DW/Routing.pm	Sat Oct 30 12:20:25 2010 +0800
+++ b/cgi-bin/DW/Routing.pm	Sat Oct 30 12:46:49 2010 +0800
@@ -208,7 +208,7 @@ sub _call_hash {
 # controller sub for register_static
 sub _static_helper {
     my $r = DW::Request->get;
-    return DW::Template->render_template( $_[0]->arg );
+    return DW::Template->render_template( $_[0]->args );
 }
 
 # INTERNAL METHOD: no POD
--------------------------------------------------------------------------------