diff --git a/IkiWiki.pm b/IkiWiki.pm index f5cf8ba96..98145a585 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1287,7 +1287,9 @@ use overload ( #{{{ ); #}}} sub new { #{{{ - return bless \$_[1], $_[0]; + my $class = shift; + my $value = shift; + return bless \$value, $class; } #}}} package IkiWiki::SuccessReason; @@ -1300,7 +1302,9 @@ use overload ( #{{{ ); #}}} sub new { #{{{ - return bless \$_[1], $_[0]; + my $class = shift; + my $value = shift; + return bless \$value, $class; }; #}}} package IkiWiki::PageSpec;