Page MenuHomePhabricator

The renderNavigation and renderPortals functions should be protected or public instead of private
Closed, ResolvedPublic

Description

The renderNavigation and renderPortals functions in Vector contain all kinds of useful stuff that a developer should be able to override in a sub class.


Version: 1.18.x
Severity: enhancement
URL: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/Vector.php?view=markup

Details

Reference
bz26459

Event Timeline

• bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:18 PM
• bzimport set Reference to bz26459.
• bzimport added a subscriber: Unknown Object (MLST).

This sort of comment really belongs in CodeReview. See r53210 where I've made just this comment (prompted by this bug).

Change private functions in Vector.php to protected

(In reply to comment #1)

This sort of comment really belongs in CodeReview. See r53210 where I've made
just this comment (prompted by this bug).

Thanks, I'll do that next time. If I knew Trevor's email address, I would probably add him to the cc list too so he would see this bug report.

That said, the average person submitting a bug is not going to hunt down the annotated code file to determine who first made a change and then hunt down the code review page to comment on it.

Attached:

sumanah wrote:

Christian, thanks for the patch. I've added the keywords "need-review" and "patch" so the bug shows up in the lists of patches awaiting review for committing or critique.