https://bugzilla.wikimedia.org/show_bug.cgi?id=21559

Maarten Dammers <maar...@mdammers.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maar...@mdammers.nl

--- Comment #4 from Maarten Dammers <maar...@mdammers.nl> 2010-08-08 17:11:34 
UTC ---
I came across this bug at
http://nl.wikipedia.org/wiki/Sjabloon:Infobox/breedte.

This page was protected before the protection log existed.

The relevant code from
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/EditPage.php?view=markup

1438      if ( $this->mTitle->getNamespace() != NS_MEDIAWIKI &&
$this->mTitle->isProtected( 'edit' ) ) {
1439     # Is the title semi-protected?
1440     if ( $this->mTitle->isSemiProtected() ) {
1441     $noticeMsg = 'semiprotectedpagewarning';
1442     } else {
1443     # Then it must be protected based on static groups (regular)
1444     $noticeMsg = 'protectedpagewarning';
1445     }
1446     LogEventsList::showLogExtract( $wgOut, 'protect',
$this->mTitle->getPrefixedText(), '',
1447     array( 'lim' => 1, 'msgKey' => array( $noticeMsg ) ) ); 

Here LogEventsList::showLogExtract is used to produce the message. This code is
in
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/LogEventsList.php?&view=markup

LogEventsList::showLogExtract will return the message 'Logempty' ("No matching
items in log.") when no matching items are found in the log.

'showIfEmpty' should probably set to False and a test should be added to see if
the number of returned items is 1 and if not, $noticeMsg should be added to the
output.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to