Last modified: 2007-06-05 05:37:19 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 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