Re: [MediaWiki-l] Preventing a tag extension from rendering twice on save?

2013-12-12 Thread Daniel Barrett
...@lists.wikimedia.org [mailto:mediawiki-l-boun...@lists.wikimedia.org] On Behalf Of Brion Vibber Sent: Friday, December 06, 2013 1:35 PM To: MediaWiki announcements and site admin list Subject: Re: [MediaWiki-l] Preventing a tag extension from rendering twice on save? Your tag hook function will be run

Re: [MediaWiki-l] Preventing a tag extension from rendering twice on save?

2013-12-06 Thread Daniel Barrett
[mailto:mediawiki-l-boun...@lists.wikimedia.org] On Behalf Of Nathan Larson Sent: Thursday, December 05, 2013 2:51 PM To: MediaWiki announcements and site admin list Subject: Re: [MediaWiki-l] Preventing a tag extension from rendering twice on save? On Thu, Dec 5, 2013 at 2:32 PM, Daniel Barrett d

Re: [MediaWiki-l] Preventing a tag extension from rendering twice on save?

2013-12-06 Thread Brion Vibber
Your tag hook function will be run once every time the page is *parsed rendered*, not every time the page is saved. It's common to see multiple parses on save; for instance it may be parsed once for link table updates initial caching with generic settings, then parsed rendered again for your

[MediaWiki-l] Preventing a tag extension from rendering twice on save?

2013-12-05 Thread Daniel Barrett
I've noticed that parser tag extensions render twice when an article is saved from the edit page. All I did was write a parser tag foo that runs error_log('foo'). It prints once when I hit foo/ on a page, but twice when saving the page from the wiki editor. Is there a way to prevent this

Re: [MediaWiki-l] Preventing a tag extension from rendering twice on save?

2013-12-05 Thread Nathan Larson
On Thu, Dec 5, 2013 at 2:32 PM, Daniel Barrett d...@vistaprint.com wrote: I've noticed that parser tag extensions render twice when an article is saved from the edit page. All I did was write a parser tag foo that runs error_log('foo'). It prints once when I hit foo/ on a page, but twice when

Re: [MediaWiki-l] Preventing a tag extension from rendering twice on save?

2013-12-05 Thread Bartosz DziewoƄski
A very similar https://bugzilla.wikimedia.org/show_bug.cgi?id=57026 was recently reported and fixed; the fix to it might be relevant for you. -- Matma Rex ___ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org