OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd37f8a
)
add System.static_dir config vars
author
hylom
<hylom@users.sourceforge.jp>
Mon, 6 Aug 2018 09:33:35 +0000
(18:33 +0900)
committer
hylom
<hylom@users.sourceforge.jp>
Mon, 6 Aug 2018 09:33:35 +0000
(18:33 +0900)
src/newslash_web/lib/Newslash/Web.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Web.pm
b/src/newslash_web/lib/Newslash/Web.pm
index
839ae55
..
6457b0e
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Web.pm
+++ b/
src/newslash_web/lib/Newslash/Web.pm
@@
-63,6
+63,13
@@
sub startup {
}
}
+ # add static contents directories
+ if ($app->config->{System} && $app->config->{System}->{static_dir}) {
+ for my $dir (@{$app->config->{System}->{static_dir}}) {
+ push @{$app->static->paths}, $dir;
+ }
+ }
+
############################################################
#
# Plugin Settings