summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Install
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2016-10-13 02:41:36 +0200
committerGitHub <noreply@github.com>2016-10-13 02:41:36 +0200
commitdf4677439d7b3658e2d896ffaab903b01c2e2fe6 (patch)
treed9013dcffb7c60cd83c23865d1a086d632f17d84 /Bugzilla/Install
parent31651c978e921e9e46cddd455f103fcf4b1a332a (diff)
downloadbugzilla-df4677439d7b3658e2d896ffaab903b01c2e2fe6.tar.gz
bugzilla-df4677439d7b3658e2d896ffaab903b01c2e2fe6.tar.xz
Bug 1301887 - File::Slurp triggers warnings on perl 5.24 and it is recommended to not use it (#21)
r=mtyson
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r--Bugzilla/Install/Filesystem.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Bugzilla/Install/Filesystem.pm b/Bugzilla/Install/Filesystem.pm
index feb150220..4c08cc538 100644
--- a/Bugzilla/Install/Filesystem.pm
+++ b/Bugzilla/Install/Filesystem.pm
@@ -31,7 +31,6 @@ use File::Path;
use File::Basename;
use File::Copy qw(move);
use File::Spec;
-use File::Slurp;
use IO::File;
use POSIX ();
@@ -541,7 +540,7 @@ sub update_filesystem {
# Remove old assets htaccess file to force recreation with correct values.
if (-e "$assetsdir/.htaccess") {
- if (read_file("$assetsdir/.htaccess") =~ /<FilesMatch \\\.css\$>/) {
+ if (read_text("$assetsdir/.htaccess") =~ /<FilesMatch \\\.css\$>/) {
unlink("$assetsdir/.htaccess");
}
}