Last modified: 2010-10-14 06:30:11 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 T27515, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25515 - wgOut rendered different in preview
wgOut rendered different in preview
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.17.x
All Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-13 21:01 UTC by karuna805
Modified: 2010-10-14 06:30 UTC (History)
2 users (show)

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


Attachments

Description karuna805 2010-10-13 21:01:55 UTC
I have an extension running on a parser hook.  Changes to $wgOut are shown when previewing the revision, but not on the actual page.

I have a really easy way to repeat the bug using the ImageMap extension (the bug itself is not in ImageMap)-

-install the ImageMap extension
-modify ImageMap_body.php
   -find the line # Determine whether a "magnify" link is present
   -just before this line, add two lines of code, so the three together are:

global $wgOut;
$wgOut->addMeta ('test', 'test');

# Determine whether a "magnify" link is present


Edit a page with an ImageMap on it.  The meta tag gets added when previewing the page but not on the page itself.
Comment 1 Niklas Laxström 2010-10-14 06:30:11 UTC
If you are using $wgOut in parser function (which you shouldn't), it doesn't get cached with the parsed article content.

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


Navigation
Links