Page MenuHomePhabricator

String "[cascading]" not shown in edit summary
Closed, ResolvedPublic

Description

Author: paolo

Description:


Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/w/index.php?title=Main_Page&action=history

Details

Reference
bz9652

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:36 PM
bzimport set Reference to bz9652.
bzimport added a subscriber: Unknown Object (MLST).

paolo wrote:

The method updateRestrictions in Article.php creates a null edit when a page is
protected. However, the summary does not include the string "[cascading]" even
if the protection is cascading, while this string is included in the logs.

BTW, the summary of paramters lacks the two final params in the same methods.

(In reply to comment #1)

BTW, the summary of paramters lacks the two final params in the same methods.

I am not sure what you mean.

paolo wrote:

Thanks for fixing. As for the unclear part, the description of the method is:

/**

  • Update the article's restriction field, and leave a log entry. *
  • @param array $limit set of restriction keys
  • @param string $reason
  • @return bool true on success */

But the method prototype contains two more parameters (cascade and expiry):

function updateRestrictions( $limit = array(), $reason = '', $cascade = 0,
$expiry = null )