Last modified: 2012-08-14 11:42:39 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 T10828, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8828 - Parameters are not passed to hooks
Parameters are not passed to hooks
Status: RESOLVED DUPLICATE of bug 2257
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.9.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 8802
  Show dependency treegraph
 
Reported: 2007-01-30 09:43 UTC by Emilien ARNAUD
Modified: 2012-08-14 11:42 UTC (History)
1 user (show)

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


Attachments
Activate parameters in hook functions (420 bytes, patch)
2007-01-30 10:04 UTC, Emilien ARNAUD
Details

Description Emilien ARNAUD 2007-01-30 09:43:21 UTC
Because of striping the parameters are not passed to hooks located in templates.

I mean you cannot use <myhook param="{{{paramPassedToTemplate}}}">...</myhook>

I made a very little change to that: include a unstrip function on each end od
parse of a template...

Does it have side effects ? The parsing flowchart is really hard to understand,
and I hope I broke nothing...

E.

P.S.: I would attach a patch helping you to see what I changed...
Comment 1 Emilien ARNAUD 2007-01-30 10:04:20 UTC
Created attachment 3161 [details]
Activate parameters in hook functions

The patch
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-01-30 16:41:21 UTC

*** This bug has been marked as a duplicate of 2257 ***

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


Navigation
Links