Last modified: 2012-10-09 03:24:42 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 T13104, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11104 - Request for new hooks in link creations
Request for new hooks in link creations
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-28 22:47 UTC by Christian Riesen
Modified: 2012-10-09 03:24 UTC (History)
2 users (show)

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


Attachments
Patch for adding the two hooks into Linker.php (522 bytes, patch)
2007-08-28 23:58 UTC, Christian Riesen
Details

Description Christian Riesen 2007-08-28 22:47:06 UTC
Mainly in the file includes/Linker.php in the function getExternalLinkAttributes just before return $r; and one in getInternalLinkAttributes same location.

This would allow a few significant changes to the way links are placed online. Some prefer to not show titles, but it also could lead to more extensive implementations like different tracking methods (Google Analytics for one).
Comment 1 Christian Riesen 2007-08-28 23:58:29 UTC
Created attachment 4056 [details]
Patch for adding the two hooks into Linker.php
Comment 2 p858snake 2011-04-30 00:09:41 UTC
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Comment 3 Sumana Harihareswara 2011-11-10 06:06:13 UTC
I'm sorry for the wait, Christian.  I'm adding the "need-review" keyword so developers know that your patch is awaiting review.  Thank you for your patch.
Comment 4 Sam Reed (reedy) 2011-11-20 18:39:20 UTC
Comment on attachment 4056 [details]
Patch for adding the two hooks into Linker.php

Patch won't apply on trunk due to no familiar surrounding code
Comment 5 Sumana Harihareswara 2011-11-20 21:12:10 UTC
Christian, if you'd like to revise your patch so that it works with the current version of the MediaWiki codebase, please come into our IRC channel 
https://www.mediawiki.org/wiki/MediaWiki_on_IRC and discuss with us.  Thanks!
Comment 6 Tyler Romeo 2012-10-09 03:24:42 UTC
I believe between the LinkBegin, LinkEnd, and LinkerMakeExternalLink hooks, there should be sufficient extension functionality.

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


Navigation
Links