Last modified: 2006-12-30 19:49:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10437, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8437 - Fix Title::loadRestrictions values and Title::isSemiProtected
Fix Title::loadRestrictions values and Title::isSemiProtected
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.9.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-30 11:48 UTC by Fyren
Modified: 2006-12-30 19:49 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Fixes. (1.08 KB, patch)
2006-12-30 11:49 UTC, Fyren
Details

Description Fyren 2006-12-30 11:48:58 UTC
Title::loadRestrictions will sometimes set mRestrictions to array('') and
sometimes not set it at all when there's no restriction level set for an action
in page_restriction.  brion suggested it should always be array() for these cases.

Title::isSemiProtected wasn't working right for the cases where it mRestrictions
was set to array() or not set.  Since it'll be either array() or an array
containing restriction levels now, it's an easy fix.
Comment 1 Fyren 2006-12-30 11:49:18 UTC
Created attachment 2988 [details]
Fixes.
Comment 2 Rob Church 2006-12-30 19:49:47 UTC
Applied in r18677, with minor modifications.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links