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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8437 - Fix Title::loadRestrictions values and Title::isSemiProtected
Fix Title::loadRestrictions values and Title::isSemiProtected
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch-reviewed
Depends on:
  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: ---

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

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]
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.