diff --git a/modules/static-copy.pl b/modules/static-copy.pl index a3a85891..82ffd0e1 100644 --- a/modules/static-copy.pl +++ b/modules/static-copy.pl @@ -239,7 +239,7 @@ sub StaticWriteCss { $css = GetPageContent($StyleSheetPage); } if (not $css) { - $css = GetRaw('https://www.oddmuse.org/default.css'); + $css = GetRaw('https://oddmuse.org/default.css'); } WriteStringToFile("$StaticDir/static.css", $css) if $css; chmod 0644,"$StaticDir/static.css"; diff --git a/t/static-copy.t b/t/static-copy.t index 0d083cfe..87511435 100644 --- a/t/static-copy.t +++ b/t/static-copy.t @@ -141,8 +141,16 @@ xpath_test_file("$DataDir/static/Test.html", '//a[text()="HomePage"][@href="HomePage.html"]'); test_file("$DataDir/static/Test.html", "Ümlaute"); -test_file("$DataDir/static/static.css", - "This is the default CSS file for Oddmuse wikis"); +SKIP: { + eval { + require LWP::Protocol::https; + }; + + skip "LWP::Protocol::https not installed", 1 if $@; + + test_file("$DataDir/static/static.css", + "This is the default CSS file for Oddmuse wikis"); +} # make sure spaces are translated to underscores (fixed in image.pl) add_module('image.pl');