From a615bedccf8bec64cee4e693c0d42fcdd8e740f4 Mon Sep 17 00:00:00 2001 From: Aleks-Daniel Jakimenko Date: Tue, 28 Apr 2015 00:03:11 +0300 Subject: [PATCH] Fixed a bunch of stuff --- modules/backlinkage.pl | 2 +- modules/clustermap.pl | 3 +-- modules/creole.pl | 2 +- modules/footnotes.pl | 6 +++--- modules/git.pl | 6 +++--- modules/header-and-footer-templates.pl | 2 +- modules/honeypot.pl | 2 +- modules/html-template.pl | 2 +- modules/load-lang.pl | 4 ++-- modules/localnames.pl | 2 +- modules/login.pl | 11 ++++------- modules/pingback-server.pl | 2 +- modules/private-wiki.pl | 22 +++++++++++----------- modules/show-comments.pl | 2 +- modules/smarttitles.pl | 6 +++--- modules/static-copy.pl | 2 +- modules/sync.pl | 2 +- modules/toc.pl | 4 ++-- modules/upload.pl | 14 +++++++------- 19 files changed, 46 insertions(+), 50 deletions(-) diff --git a/modules/backlinkage.pl b/modules/backlinkage.pl index b18da5ab..202e9e1b 100644 --- a/modules/backlinkage.pl +++ b/modules/backlinkage.pl @@ -100,7 +100,7 @@ sub GetBackLink { our ($BacklinkBanned); $BacklinkBanned = "HomePage|ScratchPad" if !$BacklinkBanned; - tie my %backhash, 'MLDBM', $backfile, O_CREAT|O_RDWR, 0644 or die "Cannot open file $backfile $!\n"; + tie my %backhash, 'MLDBM', $backfile, O_CREAT|O_RDWR, oct(644) or die "Cannot open file $backfile $!\n"; # Search database for matches while ( my ($source, $hashes) = each %backhash ) { diff --git a/modules/clustermap.pl b/modules/clustermap.pl index 1f8956cf..af4fcf3c 100644 --- a/modules/clustermap.pl +++ b/modules/clustermap.pl @@ -183,14 +183,13 @@ sub CreateClusterMap { sub ClusterMapPrintRcHtml { my ( @options ) = @_; - my $page = ""; my $cluster = GetParam('rcclusteronly'); if ($cluster ne "") { CreateClusterMap(); print "Pages in this cluster:"; print "