Last modified: 2007-06-05 05:37:19 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 T12139, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10139 - Allow Developers to add links to edit sections via hooks
Allow Developers to add links to edit sections via hooks
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.11.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://wiki.montcopa.org/MediaWiki
: patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-04 19:11 UTC by Jack D. Pond
Modified: 2007-06-05 05:37 UTC (History)
2 users (show)

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


Attachments
Diff on 1.10.RC1 trunk (1.54 KB, patch)
2007-06-04 19:11 UTC, Jack D. Pond
Details
Parameter $hint needed to tag [edit] help (724 bytes, patch)
2007-06-05 05:37 UTC, Jack D. Pond
Details

Description Jack D. Pond 2007-06-04 19:11:38 UTC
Created attachment 3712 [details]
Diff on 1.10.RC1 trunk

Allow developers to customize the section headers for addition links (icons, text, etc).

This would make the following possible without patches:

http://www.mediawiki.org/wiki/Extension:DiscussionThreading

and allow workarounds for:

http://bugzilla.wikimedia.org/show_bug.cgi?id=6467
http://bugzilla.wikimedia.org/show_bug.cgi?id=522
http://bugzilla.wikimedia.org/show_bug.cgi?id=3043

Would only require two new hooks into linker.php (see full details in diff file attached):

in public function editSectionLinkForOther add:
    wfRunHooks( 'editSectionLinkForOther', array( &$this, $title, $section , $url, &$result)  );

in public function editSectionLink add:
    wfRunHooks( 'editSectionLink', array( &$this, $nt, $section, $hint='', $url , &$result) );
Comment 1 Rob Church 2007-06-05 01:51:13 UTC
Applied in r22737, with minor modifications.
Comment 2 Jack D. Pond 2007-06-05 05:37:19 UTC
Created attachment 3720 [details]
Parameter $hint needed to tag [edit] help

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


Navigation
Links