On Wed, Feb 15, 2017 at 11:37 AM Tom Bishop, Wenlin Institute <
tangmu(a)wenlin.com> wrote:
Hello,
When ImportDump.php is run, PageContentSaveComplete hooks are not called,
unless I'm mistaken.
Is this true, and if so, is it by design, or an oversight?
My recollection is that this was deliberate; an import is like a restore of
a deleted page in that saving is something that happened in the past,
somewhere else.
How could one make sure that a task gets done whenever a page is created or
modified through the browser, the api, or
ImportDump.php? Would some other
hook be more suitable for that?
There is the RevisionInsertComplete hook if you're looking to perform an
action on every revision insertion, which may do the job depending on what
you need, but doesn't distinguish between filling in old versions and
updating the current version of a page; if that doesn't look like it'll do
what you need can you describe the use case for the extension a bit?
-- brion
Thanks in advance for any clarifications or suggestions.
Best wishes,
Tom
Wenlin Institute, Inc. SPC (a Social Purpose Corporation)
文林研究所社会目的公司
Software for Learning Chinese
E-mail: wenlin(a)wenlin.com Web:
http://www.wenlin.com
Telephone: 1-877-4-WENLIN (1-877-493-6546)
☯
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l