summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-01-24 15:04:02 +0100
committerYorhel <git@yorhel.nl>2010-01-24 15:07:00 +0100
commitd7815efc3a99aecc61c5ac1d9833de0f448b697f (patch)
tree50e8082f67f360eff12c434723784d9069df4109 /util
parentb04c46baec8aef93d21898ef7f52b9d6d2442ce3 (diff)
Automatically generate the skin credits on d7
Added a userid field in the skin config files, from which the credits are loaded. Now I don't have to constantly update d7 for every language when something changes in the skin files.
Diffstat (limited to 'util')
-rwxr-xr-xutil/vndb.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/vndb.pl b/util/vndb.pl
index 07ad20aa..ee617caa 100755
--- a/util/vndb.pl
+++ b/util/vndb.pl
@@ -107,8 +107,8 @@ sub readskins {
my $lasttemplate = [stat "$ROOT/data/style.css"]->[9];
my $skin = SkinFile->new("$ROOT/static/s");
for my $n ($skin->list) {
- $skins{$n} = $skin->get($n, 'name');
- next if !$skins{$n};
+ $skins{$n} = [ $skin->get($n, 'name'), $skin->get($n, 'userid') ];
+ next if !$skins{$n}[0];
my $f = "$ROOT/static/s/$n";
my $css = -f "$f/style.css" && [stat "$f/style.css"]->[9] || 0;