Skip to content

Commit

Permalink
Make LogParameterCollection.SuppressRedirect compatible with MW 1.19.
Browse files Browse the repository at this point in the history
Upgrade package version.
  • Loading branch information
CXuesong committed Aug 15, 2018
1 parent 7cf84ed commit 845eea1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion WikiClientLibrary/Generators/LogEventsList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,13 @@ static LogParameterCollection()
/// <summary>
/// (<see cref="LogActions.Move"/>) Whether to suppress the creation of redirect when moving the page.
/// </summary>
public bool SuppressRedirect => GetBooleanValue("suppressredirect");
/// <remarks>
/// This property returns true if either <c>suppressredirect</c> (Newer MediaWiki)
/// or <c>suppressedredirect</c> (MediaWiki 1.19, or Wikia)
/// is specified as true in the parameter collection.
/// </remarks>
public bool SuppressRedirect => GetBooleanValue("suppressredirect")
|| GetBooleanValue("suppressedredirect"); // Yes, this one is dedicated to Wikia.

/// <summary>
/// (<see cref="LogActions.Patrol"/>)
Expand Down
6 changes: 3 additions & 3 deletions WikiClientLibrary/WikiClientLibrary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<TargetFrameworks>netstandard1.1;netstandard2.0</TargetFrameworks>
<AssemblyName>WikiClientLibrary</AssemblyName>
<PackageId>CXuesong.MW.WikiClientLibrary</PackageId>
<Version>0.6.1</Version>
<AssemblyVersion>0.6.1.0</AssemblyVersion>
<FileVersion>0.6.1.0</FileVersion>
<Version>0.6.2</Version>
<AssemblyVersion>0.6.2.0</AssemblyVersion>
<FileVersion>0.6.2.0</FileVersion>
<Copyright>Copyright (C) CXuesong 2018</Copyright>
<Description>
Wiki Client Library is a .NET Standard &amp; asynchronous client library for MediaWiki sites.
Expand Down

0 comments on commit 845eea1

Please sign in to comment.