Last modified: 2011-03-13 18:06:26 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 T5577, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3577 - Add a hook to Revision
Add a hook to Revision
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.5.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-30 15:13 UTC by denny vrandecic
Modified: 2011-03-13 18:06 UTC (History)
0 users

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


Attachments
patch with suggested hook, based on mw 1.5rc4 (72 bytes, patch)
2005-09-30 15:15 UTC, denny vrandecic
Details
diff -u used, patch to resolve enhancement (337 bytes, patch)
2005-09-30 15:18 UTC, denny vrandecic
Details

Description denny vrandecic 2005-09-30 15:13:42 UTC
We are working on the Semantic MediaWiki extension (see
http://meta.wikimedia.org/wiki/Semantic_MediaWiki ). In order to create an easy
to install extension and not to need to patch the MediaWiki first, we would ask
to add the following hook at the end of the function getRevisionText in the
Revision class in Revision.php:

wfRunHooks('RevisionAfterGetRevisionText', array(&$text));

The patch is based on the 1.5rc4 from SourceForge.
Comment 1 denny vrandecic 2005-09-30 15:15:15 UTC
Created attachment 930 [details]
patch with suggested hook, based on mw 1.5rc4
Comment 2 denny vrandecic 2005-09-30 15:18:49 UTC
Created attachment 931 [details]
diff -u used, patch to resolve enhancement
Comment 3 Ævar Arnfjörð Bjarmason 2005-09-30 15:26:46 UTC
FIXED in HEAD and REL1_5
Comment 4 Brion Vibber 2005-09-30 22:03:09 UTC
I'm reverting this until someone explains what it's intended to do.

Note that modifying text in that part of the code would cause data corruption when 
things are moved from one storage mode to another. If you want a hook that filters data 
on wiki rendering, that needs to be somewhere else.
Comment 5 Brion Vibber 2005-10-09 07:26:11 UTC
No further information from requester, resolving WONTFIX.

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


Navigation
Links