summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/VNDB/Func.pm2
-rw-r--r--lib/VNDB/Handler/Misc.pm3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/VNDB/Func.pm b/lib/VNDB/Func.pm
index 25738970..9827a584 100644
--- a/lib/VNDB/Func.pm
+++ b/lib/VNDB/Func.pm
@@ -179,7 +179,7 @@ sub charspoil {
# generates a local path to an image in static/
sub imgpath { # <type>, <id>
- return sprintf '%s/static/%s/%02d/%d.jpg', $VNDB::ROOT, $_[0], $_[1]%100, $_[1];
+ return sprintf '%s/static/%s/%02d/%d.jpg', $TUWF::OBJ->{root}, $_[0], $_[1]%100, $_[1];
}
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm
index 81a8993d..666e71bd 100644
--- a/lib/VNDB/Handler/Misc.pm
+++ b/lib/VNDB/Handler/Misc.pm
@@ -337,8 +337,7 @@ sub opensearch {
tag 'ShortName', 'VNDB';
tag 'LongName', 'VNDB.org visual novel search';
tag 'Description', 'Search visual vovels on VNDB.org';
- tag 'Image', width => 16, height => 16, type => 'image/x-icon', "$h/favicon.ico"
- if -s "$VNDB::ROOT/www/favicon.ico";
+ tag 'Image', width => 16, height => 16, type => 'image/x-icon', "$h/favicon.ico";
tag 'Url', type => 'text/html', method => 'get', template => "$h/v/all?q={searchTerms}", undef;
tag 'Url', type => 'application/opensearchdescription+xml', rel => 'self', template => "$h/opensearch.xml", undef;
tag 'Query', role => 'example', searchTerms => 'Tsukihime', undef;