Commit graph

797 commits

Author SHA1 Message Date
jenkins-bot
3158abd351 Merge "Hook to allow manipulation of image data" 2012-12-23 18:01:30 +00:00
nischayn22
b207c900fa Hook to allow manipulation of image data
Adds a new hook, ThumbnailBeforeProduceHTML, to ThumbnailImage::toHtml
method, in order to permit the user to manipulate the image and link
attributes before the HTML is rendered. For details see bug 41835

Note: Patch given by Victor <vdanilchenko@vistaprint.net>

Change-Id: Ib94967997e1303522d0081c7387e29af9c0ef0f0
2012-12-23 12:55:15 -05:00
Siebrand Mazeland
6e165c76a3 Update misleading variable names in docs
$article for a WikiPage object isn't a great choice. Let's use $wikiPage.

Change-Id: I98832355b14fc4a281d3f0e2dbee85e142d83418
2012-12-05 14:41:41 +01:00
Chad Horohoe
73451c606b Add a hook to Special:Version so we can customize the version URL
Change-Id: I02fe38c7b13dcfe570e78d28783098fc18756204
2012-11-29 15:01:54 -05:00
Ori.livneh
023b1dafd3 Merge "Addition of SearchAfterNoDirectMatch hook" 2012-11-28 11:52:07 +00:00
Reedy
904e4bdf7f Addition of SearchAfterNoDirectMatch hook
Needed for mediawiki/extensions/SearchExtraNS

Change-Id: If0a7da5c8691c418bc388e50dd11eea3b57ed45d
2012-11-28 03:47:17 -08:00
IAlex
7e8154f9e8 Merge "Fix doc/hooks.txt for EditPage::showStandardInputs:options" 2012-11-27 19:01:51 +00:00
bsitu
494529503b (bug 14901) Email notification mistakes log action for new page creation
Original patch by Dan Nessett, modified by Benny Situ and Roan Kattouw

Change-Id: Ibb7953741e4189127d1cd6718ac58492f254671e
2012-11-26 19:37:01 +00:00
Brad Jorsch
078a0c16d0 Fix doc/hooks.txt for EditPage::showStandardInputs:options
The documentation added for this hook in Ic5d35c8e missed one of the
parameters.

Change-Id: I935dac942679d999658fa9fe367db81df33edbfd
2012-11-26 12:57:25 -05:00
Brad Jorsch
8d198333d3 Add EditPage hooks AlternateEditPreview, EditPage::showStandardInputs:options
Adds two new hooks:
* AlternateEditPreview allows an extension to override the standard
  page preview display.
* EditPage::showStandardInputs:options allows an extension to add
  additional HTML to the end of the editOptions area of the edit form.

Change-Id: Ic5d35c8e9ff71282b5ebccc87c64894a385e5836
2012-11-22 01:13:33 +00:00
Daniel Kinzler
d4556df5e8 Merge "add SpecialUndeleteLogEntry hook" 2012-11-19 13:17:31 +00:00
aude
58bd2adb3d add SpecialUndeleteLogEntry hook
- allows extensions to perform some action at time that a undeletion log entry is performed,
or skip the insertion of a log entry.

Change-Id: I5b0caaddfe5d7262612a60946d9f5c4af2679141
2012-11-19 10:23:21 +00:00
Ori Livneh
29cb4c98ed Fix typo (cointent => content)
Change-Id: I4d6702d0b2a6c4fe224a8c59808a579b6c6916a0
2012-11-16 21:19:48 -08:00
Brad Jorsch
7c9d6c0d10 (bug 32368) Add ParserCloned hook
We store various bits of data as "expando" properties on the Parser
object, to pass information from one stage of the parser to another. If
the parser is cloned, however, we can run into trouble because two
different Parser objects are now manipulating the same extension data
structure; this often shows up when ParserClearState is called on one
clone and clears the state of the other as well.

Since a deep clone might be too expensive and still might be wrong in
some cases, it seems most useful to simply provide a ParserCloned hook
so extensions can just do The Right Thing.

Change-Id: Ieec65c908d71e89b9a66f83b9a626f842aadacbb
2012-11-16 11:27:13 -05:00
Aaron Schulz
a8644b99bb Merge "Content::convert() for conv. betw. content models." 2012-11-07 20:39:09 +00:00
Aaron Schulz
4c8816746f Merge "(Bug 41580) Hook for custom search hit rendering." 2012-11-07 00:55:41 +00:00
Chad Horohoe
444d3490eb Doc tweak: variable is actually $isKnown and is a reference
Change-Id: Ib68ea809cbda50b445865bcde22ad7583c8e7f38
2012-11-06 14:52:30 -05:00
daniel
ea4473037d Content::convert() for conv. betw. content models.
This is needed to fix bug 41706 and similar, watch for follow-ups.

Automatic, implicit conversion may be handy in several cases, especially
for converting between different text based content models. E.g. it should
be possible to create a diff between a JavaScript and a wikitext page. This
change lais the foundations for this ability.

Change-Id: Ie7d87b67b24ac9897cb5696220a7785b228d3c79
2012-11-06 17:39:10 +01:00
daniel
d6495c2a4e (Bug 41580) Hook for custom search hit rendering.
Introducing ShowSearchHit hook into SpecialSearch, so extensions
can control of how search results are displayed. This does not
fix bug 41580, but it's a precondition to fixing it in Wikibase.

Change-Id: I9158684b92e320a486266c45dc3f7cf466ec5a24
2012-11-06 14:01:16 +01:00
Hashar
7b890dce25 Merge "update export-demo.xml to version-0.8.xsd" 2012-11-06 09:04:34 +00:00
umherirrender
098f7680a4 Fix escaping of pattern in export-0.8.xsd
ExportDemoTest::testExportDemo
xml not valid against xsd: DOMDocument::schemaValidate(): failed to
compile: Wrong escape sequence, misuse of character '\'

Change-Id: Iefae25270b0ad1bf3aa587a51eec3fec1866cff8
2012-11-03 19:38:58 +01:00
umherirrender
daf20e5c8c update export-demo.xml to version-0.8.xsd
Add a assertion to the validation test to ensure, export-demo.xml is
updated next time, when a new version is created.

Change-Id: I004ca23d848dd6701acb45e9b755397b434370c4
2012-11-03 19:37:02 +01:00
Siebrand Mazeland
9c592c508c Correct documentation for EditFilter hook parameter
Change-Id: I1f5dbc834c44c33fce495a8c4ca5fc0f2b61b4c7
2012-10-24 10:18:38 +02:00
Alexandre Emsenhuber
d888481866 Follow-up I186669a5 (4b62b03): reorder hooks alphabetically
Change-Id: I399f10df254762c4dd05e2c6fb83c29cc6121f81
2012-10-17 22:32:02 +00:00
aude
42ff119e8a Fix typo in contenthandler documentation
Change-Id: Id03f854eca4b6c53ecd535422b779bf8a459750d
2012-10-16 10:36:56 +00:00
Aaron Schulz
19745cb831 Merge "Prefix new ContentHandler hooks in WikiPage with Page instead of Article" 2012-10-11 17:12:50 +00:00
Siebrand Mazeland
4b62b0339c Prefix new ContentHandler hooks in WikiPage with Page instead of Article
Covers 3 hooks:
* ArticleContentInsertComplete -> PageContentInsertComplete
* ArticleContentSave -> PageContentSave
* ArticleContentSaveComplete -> PageContentSaveComplete

Change-Id: I186669a5941d8982725ed364b481215d291b2043
2012-10-11 18:22:52 +02:00
Alex Monk
388df2ee24 Tidy up InfoAction and note it's hook in docs/hooks.txt
Also add $context parameter to the hook and (bug 40845) don't
overwrite pageInfo's $title parameter.

Change-Id: I41128abb72553142b45e90befabde541b2d8941f
2012-10-11 01:41:43 +01:00
daniel
329d5b3516 Merge branch 'Wikidata' into master.
This introduces the ContentHandler facility into MediaWiki,
see docs/contenthandler.txt.

For convenient review, a squashed version is available at
https://gerrit.wikimedia.org/r/27191

The ContentHandler facility is a major building block of the Wikidata project.
It has been discussed repeatedly on wikitech-l.

Change-Id: I3804e2d5f6f59e6a39db80744bdf61bfe8c14f98
2012-10-09 11:34:24 +02:00
umherirrender
d73e90c99c Add version number to deprecated setting
Fix one doc

Change-Id: I527639c3694d7b72d9f3bff62fb8b0b7eb6ee126
2012-10-09 08:25:01 +02:00
daniel
c546fae8ed merge latest master into Wikidata branch
Change-Id: Id4e0f40c03679c13d8934a6add99b5cd86d0437d
2012-10-08 13:58:54 +02:00
Aude
c3a46a5d36 Merge "copyedit" into Wikidata 2012-10-05 13:42:46 +00:00
daniel
1cfa4fc0dc copyedit
Change-Id: Ifad517560a3374575c08095991fa846fc6bc7ed4
2012-10-05 15:09:09 +02:00
daniel
601b5c9959 Merge "Updated export XSD to include model and format." into Wikidata 2012-10-05 12:37:57 +00:00
daniel
d087dd0f88 added architecture documentation
Change-Id: I60f1d0b710802b2076fff94e535cd4534b6c9a30
2012-10-05 14:33:51 +02:00
daniel
f3dc35246e Updated export XSD to include model and format.
Change-Id: Iffd89862c76f850950e13e56b8d6a9c855230fed
2012-10-05 12:05:16 +02:00
Siebrand Mazeland
36ac69b928 The hooks are initiated from WikiPage instead of Article
Change-Id: Ie3d29d6b73916a17cec8cb5ce1a66d98d791eb40
2012-09-25 22:03:34 -07:00
Chad Horohoe
431a2216c2 Fix invalid HTML in design doc
Change-Id: Ibb664c22dc54109b113a51b4385e5564c2b80ce1
2012-09-24 09:01:59 -04:00
daniel
8f479e2e45 Add parameters to ArticleDeleteComplete.
Supply more information about the deleted revision to hook functions.

Change-Id: Ie1fc967d074deb918c824e10398bcb0ec2d557ac
2012-09-20 21:15:43 +02:00
daniel
b6b686c13b merged master
Change-Id: I0ef7c7f33a5dc5855f38b20c03ddc5306f38ec66
2012-09-19 12:34:10 +02:00
IAlex
4498b01558 Merge "fix docu for ApiCheckCanExecute" 2012-09-12 18:51:34 +00:00
Alexandre Emsenhuber
d19e0d6c94 Link to mediawiki.org using https from doxygen first page, not http
Change-Id: I13fe244e6122930731f144f97f27126339065481
2012-09-11 21:43:29 +02:00
daniel
b8d6d18452 fix docu for ApiCheckCanExecute
Change-Id: Ib9af835f3e775dd89a655b186923535d9bd01678
2012-09-11 15:16:39 +02:00
daniel
12166f46b4 merged master (2012-09-11)
Change-Id: I8e953eaa22f9d331b0af5e780fbeff6d702b23e3
2012-09-11 11:43:02 +02:00
IAlex
8634014e86 Merge "Replace some occurrences of wfMsg* by alternatives. Undeprecated wfMsgReplaceArgs." 2012-09-10 17:33:37 +00:00
Aaron Schulz
781377eacc Merge "New hook, 'SearchResultInitFromTitle'" 2012-09-07 20:49:32 +00:00
Daniel Werner
2f6430d40d New hook 'AfterFinalPageOutput' which is called at the end of OutputPage::output()
Called  before final ob_end_flush() which will send the buffered output to the client. This allows for last-minute modification of the output within the buffer by using ob_get_clean().

- patch-set2: moved the hook before OutputPage::sendCacheControl() is called, as suggested by Reedy.

Change-Id: I264a37ac74e0c18ff141f82156e669ece3212c2d
2012-09-07 09:32:39 +02:00
Daniel Kinzler
a1a296ac84 Merge "New hook ApiCheckCanExecute." 2012-09-05 19:06:48 +00:00
Tyler Romeo
780b6878f7 New hook ApiCheckCanExecute.
Added new hook in ApiMain::checkCanExecute
so that extensions can authenticate and
authorize API clients before the module is
execute. (Necessary for extensions like
OAuth that externally authnz clients.)

Change-Id: I1b059fd9a4aa717928af8b09f5edebe899ab3ce1
Signed-off-by: Tyler Romeo <tylerromeo@gmail.com>
2012-09-05 14:33:14 -04:00
yaron
13b2fe802e New hook, 'SearchResultInitFromTitle'
This hook lets you change the revision ID used for a page (a Title
object), when displaying that page in search results. It's useful for
the Approved Revs extension, so that pages whose approved revision is
not their latest can have their approved revision, not the latest one,
show up when doing a search text. It's also potentially useful for
other, similar extensions, like FlaggedRevs.

Change-Id: Ic4bad8dfaa83de131db9c8e7667d7f5767d8d5f5
2012-09-05 20:03:09 +04:00