OSDN Git Service

Plugin::TT2Renderer: add "config" template variable
authorhylom <hylom@users.sourceforge.jp>
Fri, 24 Aug 2018 10:18:25 +0000 (19:18 +0900)
committerhylom <hylom@users.sourceforge.jp>
Fri, 24 Aug 2018 10:18:25 +0000 (19:18 +0900)
src/newslash_web/lib/Newslash/Plugin/TT2Renderer.pm

index d85f01f..14db89d 100644 (file)
@@ -169,9 +169,12 @@ sub register {
                                  }
 
                                  # Config variables
+                                 # deprecated! 
                                  for my $key (keys %{$app->config}) {
                                      $vars->{$key} = $app->config->{$key};
                                  }
+                                 # use "config" variable to access configs.
+                                 $vars->{config} = $app->config;
 
                                  # add extra objects
                                  if ($self->{extra_objects}) {