Brion Vibber
da83631150
format fix
2008-07-02 01:05:08 +00:00
Brion Vibber
add8c926ac
OpenSearch cleanup; Firefox now sends you to the search page for empty searches instead of the domain root (which may not even be a wiki).
...
This is done by adding the <moz:SearchForm> extension element with the Special:Search URL.
Removed the 24-character truncation on ShortName... neither Firefox nor IE seems to care about longer names, but both expect the ShortName and <link> title to match, and will think you have a duplicate search provider if they don't match because only one was truncated. (Besides, 24 was longer than the spec's limit of 16 -- why bother limiting at all if not to spec?)
The JSON suggestions are now no longer included in the OpenSearch description if the API is disabled, since the interface won't work.
Generally removed some hardcoded escape-then-stick-vars-in-string-output eww... Extension hooks now have a more general opportunity to alter or replace the OpenSearch URLs by tying into the OpenSearchUrls hook.
2008-07-01 23:31:24 +00:00
Chad Horohoe
8af42e9413
Pass $mediaWiki object to MediawikiPerformAction hook.
2008-07-01 03:56:16 +00:00
Jack Phoenix
599b5a42d0
Two new hooks and one new global function from Wikia codebase
2008-06-30 08:42:09 +00:00
Aryeh Gregor
124d3cce7d
Update RELEASE-NOTES and hooks.txt for r36692. Contrary to the commit message, the AbortMove hook seems not to have been changed, so I didn't mention that.
2008-06-27 13:37:47 +00:00
Ryan Schmidt
40ccb73c4d
* add new hook LinkerMakeExternalImage to allow extensions to modify the HTML output of external images
2008-06-24 14:32:49 +00:00
Chad Horohoe
13d510bf55
Bit of work to AbortMove hook, in preparation for making the SpamBlacklist work on move logs.
2008-06-24 13:03:16 +00:00
Chad Horohoe
6928864a0c
Hooks EditFilter and EditFilter complete got a new param (edit summary), docs updated with this.
2008-06-19 03:14:05 +00:00
Alexandre Emsenhuber
9c1c71d558
Per r36375: update docs/memcached.txt
2008-06-18 09:49:15 +00:00
Niklas Laxström
58f7bb30a0
Refactored SpecialRecentchanges:
...
* Use a class and new frameworks
* Split into functions
* Two new hooks
* Split feed related items to new classes that are autoloaded
2008-06-17 08:24:00 +00:00
Aryeh Gregor
6231aa29db
Slightly clarify docs
2008-06-12 21:31:05 +00:00
Alexandre Emsenhuber
de38755f0d
Document UserLoadDefaults and UserSetCookies hooks
2008-06-11 11:07:34 +00:00
Brion Vibber
364aef1d10
Revert r36161 -- these are pretty weird-looking hooks, which seem a bit arbitrary and have terrible names.
2008-06-10 21:14:14 +00:00
Jack Phoenix
a052460863
Two new hooks to EditPage.php, EditPage::AfterEdit:Form and EditPage:BeforeDisplayingTextbox
2008-06-10 16:33:41 +00:00
Ryan Schmidt
2c0df2ef3b
* add hook desc to hooks.txt and fix typo in LinkerMakeExternalLink hook
2008-06-08 21:58:29 +00:00
Aaron Schulz
ba54d88882
* Add OldLocalFile::selectRows()
...
* Add LocalFile::getHistory hook
* Do file history quality query all at once rather than per file
2008-06-08 17:39:24 +00:00
Aryeh Gregor
421a7f1175
SpecialSearchResults hook now passes results by reference, so they can be changed by extensions.
2008-06-05 18:13:16 +00:00
Andrew Garrett
e25009cae1
Add GetAutoPromoteGroups hook, which was in my working copy but not committed yet (core change for TorBlock extension)
2008-06-04 06:04:13 +00:00
Brion Vibber
a3b85ed3ea
Revert r35476, r35479 -- breaks first login with global account when ConfirmEdit is present.
2008-05-28 18:43:18 +00:00
Andrew Garrett
e588383c86
* Respect hooks' decisions when autocreating accounts.
...
* New parameter for AbortCreateAccount: (whether the account is being autocreated). Used in CentralAuth.
2008-05-28 11:26:05 +00:00
Alexandre Emsenhuber
60e4a51e1a
Added $oldName to documentation of UserLogoutComplete hook
2008-05-27 19:59:15 +00:00
Alexandre Emsenhuber
9c700dad77
Document ImagePageFindFile hook
2008-05-24 20:51:08 +00:00
Alexandre Emsenhuber
80524bb52d
phpdoc -> doxygen
2008-05-23 20:06:25 +00:00
Aaron Schulz
3543d97c5c
Add PageHistoryPager::getQueryInfo
2008-05-23 16:55:52 +00:00
Andrew Garrett
bc23aede55
Core changes for GlobalBlocking and TorBlock extensions, plus some core refactoring work:
...
* Instead of saying 'do that' in a permissions error, actually list what the action is (drawn from the right-$1 messages). This isn't perfect - it says you don't have permission to edit pages when
you can't edit a single page, but it's better than 'do that'.
* Refactor out some code from various block files into Block::formatExpiry and Block::parseExpiryInput.
* Don't display 'you cannot edit special pages' when you're trying to execute, or create an account, or something like that.
* New AbortAutoblock hook (for use in TorBlock extension), which allows extensions to cancel autoblocks.
2008-05-23 10:34:11 +00:00
Aaron Schulz
eda07e65be
It helps if doc is accurate ;)
2008-05-22 04:53:05 +00:00
Aaron Schulz
9717cebd88
*Redo newRevisionFromEditComplete hook. Pass an Article instead of a title
...
*Use prepareTextForEdit() to avoid double parsing
*Parser cache will be saved again later, so need to do it twice in a row
2008-05-22 01:03:45 +00:00
Aaron Schulz
7c2c02953c
* Add higher level newRevisionFromEditComplete hook
...
* Use this hook for autoreviewing. Merge to one function again.
* Remove template ID query for $usestabletemplates, not needed
* Improve includes change diff if $usestabletemplates is on
2008-05-17 17:53:46 +00:00
Brion Vibber
beedd5c5f3
Revert r34906, r34907, r34928 -- mixing high-level data into low-level storage functions for the sole purpose of passing it off to hooks, which seems very icky to me. It feels like a hook in the wrong place is being used.
2008-05-17 15:53:58 +00:00
Alexandre Emsenhuber
ecbdb3ad1c
Document AuthPluginAutoCreate hook
2008-05-17 09:06:35 +00:00
Aaron Schulz
4bb299cbce
*Add ImagePageFileHistoryLine hook
...
*Tweak hook doc order
*Mark flagged file versions in hist
*Remove $dbr field
*Tweak file histories to be more compact
2008-05-17 00:08:31 +00:00
Aaron Schulz
21bc5be1a7
Improve efficiency of autoreviewing of edits rollbacks and merge into main function
2008-05-16 18:22:31 +00:00
Aaron Schulz
493d8451b8
Decrappify edit check for revision hook
2008-05-16 03:17:05 +00:00
Alexandre Emsenhuber
24b095a3d6
Document new hook UserLoadFromSession and add a note to RELEASE-NOTES that AutoAuthenticate has been renamed
2008-05-14 12:45:16 +00:00
Alexandre Emsenhuber
5087bbbbc5
* Added --online option to maintenance/findhooks.php to compare hooks with http://www.mediawiki.org/wiki/Manual:Hooks
...
* Renamed GetAvailableRights to UserGetAllRights in docs/hooks.txt
2008-05-09 16:22:33 +00:00
River Tarnell
3e996679d9
(bug 13584) New hook: SkinTemplateToolboxEnd
2008-04-30 10:17:51 +00:00
Alexandre Emsenhuber
11353b6984
Per r33966: added $id param to ArticleDeleteComplete hook
2008-04-29 16:07:04 +00:00
Andrew Garrett
eee9c290db
Various final compatibility additions to work with global groups, which is ready for review
2008-04-24 11:36:47 +00:00
Brion Vibber
6a8177178b
Revert r33725, r33726 (hook in Sanitizer::fixTagAttributes()).
...
This hook is just plain weird.
* Return value on abort destroys the entire data set
* Whitespace is bad
* It's very unclear what this would be used for
* This is a low-level function that's going to get called very often, and the hook is in a place that has little clear function. It's unclear what a general hook would want to do with it.
2008-04-22 17:29:41 +00:00
Andrew Garrett
8fd8155ee2
(bug 13821) Add new SanitizerAfterFixTagAttributes. Patch adapted from one by Wiktor Walc, but with some indentation fixing, and my own documentation on the hook
2008-04-22 13:02:33 +00:00
Robert Stojnić
d6fd8e7c13
Ajax suggestions:
...
* check in a new ajax suggestion engine (mwsuggest.js) which uses
OpenSearch to fetch results (by default via API), this should
deprecated the old ajaxsearch thingy
* extend PrefixSearchBackend hook to accept multiple namespaces for
future lucene use (default implementation however can still
process only one)
* Added to preferences, also a feature to turn it on/off for every
input (disabled atm until I work out browser issues completely)
* WMF wikis probably won't be using API to fetch results, but a
custom php wrapper that just forwards the request to appropriate
lucene daemon, added support for that
SpecialSearch:
* moved stuff out of SpecialSearch to SearchEngine, like snippet
highlighting and such
* support for additional interwiki results, e.g. title matches
from other projects shown in a separate box on the right
* todo: interwiki box doesn't have standard prev/next links to
avoid clutter and unintuitive interface
* support for related articles
2008-04-15 23:06:28 +00:00
Aaron Schulz
68df48c93a
Autoreview null edits too (bug 13733)
2008-04-15 15:38:08 +00:00
Alexandre Emsenhuber
4af415d4ec
Document newly added hooks
2008-04-15 15:37:02 +00:00
Aryeh Gregor
209b382761
Add a new hook EditPageBeforeEditConflict to allow extensions like FCKeditor to modify the output for edit conflicts. By request of moisadoru on IRC for FCKeditor extension issue: http://dev.fckeditor.net/ticket/1385
2008-04-15 14:47:04 +00:00
Alexandre Emsenhuber
254d05e7fe
Remove $wgLinkCacheMemcached from doc
2008-04-13 14:31:15 +00:00
Alexandre Emsenhuber
c27b4b7b62
Added parameter to SavePreferences hook, contains old user preferences. See my next commit for an implementation of it.
2008-04-12 19:42:27 +00:00
Alexandre Emsenhuber
a1963860d5
Document GetCacheVaryCookies hook
2008-04-10 14:28:56 +00:00
Alexandre Emsenhuber
08c2aa74b9
Per r33051: remove it from doc
2008-04-09 20:27:45 +00:00
Andrew Garrett
ac930bf819
Modify UserLoginComplete and UserLogoutComplete hooks to allow HTML injection into the success page by hooks. For CentralAuth 'global logging in'
2008-04-09 12:44:53 +00:00
Alexandre Emsenhuber
b5125bffc7
Added parameter to BeforePageDisplay hook so that extension can use it to modify it. See my next commit for an inplementation of it.
2008-04-07 17:53:31 +00:00
Alexandre Emsenhuber
1a2e8d1fd3
Removed $wgLoadBalancer from doc
2008-03-31 20:48:24 +00:00
Alexandre Emsenhuber
752b64e46d
Document ArticleRevisionVisiblitySet hook
2008-03-22 17:29:44 +00:00
Alexandre Emsenhuber
ffb9afb2af
Some tweaks:
...
* Remove ending ?> tag in NamespaceCompat.php
* Fix hook name in docs/hooks.txt
2008-03-22 14:55:29 +00:00
Brion Vibber
0924a30333
* (bug 9447) Added hooks for search result headings
...
* (bug 13338) DidYouMean extension now displays 'see also' on general search results
2008-03-21 22:36:34 +00:00
Aryeh Gregor
d25bc46fbc
Clean up typos, wrap to 80 chars instead of some random number, fix some grammar, remove obsolete complaint about PHP not being a real OO language (although you can still argue it's not a real language period :) ).
2008-03-16 18:14:31 +00:00
Alexandre Emsenhuber
fb38bbf72f
docs update
2008-03-13 19:00:19 +00:00
Alexandre Emsenhuber
897885160f
update docs/magicword.txt
2008-03-12 10:15:02 +00:00
Alexandre Emsenhuber
dcae2e1127
* Update docs/skin.txt.
...
* Removed skins/SkinPHPTal.sample as PHPTal isn't used for ages.
2008-03-11 16:00:59 +00:00
Yaron Koren
fc86bfd2fb
Added new hook, 'BrokenLink'
2008-03-06 18:23:30 +00:00
Brion Vibber
b7abfbc9f6
Revert r31505, r31510 (secureAndSplit hook).
...
This hook doesn't seem well thought out; a hook isn't given clean access to the various possible fields it's likely to want to manipulate, and generally feels a bit rushed.
2008-03-03 19:54:22 +00:00
Roan Kattouw
e0aae6a658
API: Adding action=edit module
2008-03-03 18:08:40 +00:00
Roan Kattouw
33a913d27f
(bug 13166) Adding TitleSecureAndSplit hook. Modified patch by Joshua Bacher
2008-03-03 16:22:36 +00:00
Roan Kattouw
d2a7be1488
(bug 12542) Adding a bunch of hooks to SpecialListusers.php, modified patch by Daniel Friesen
2008-03-02 14:14:43 +00:00
Alexandre Emsenhuber
744363ef1f
doc tweaks
2008-03-01 20:39:45 +00:00
Alexandre Emsenhuber
7248aeaaff
* Update docs/memcached.txt
...
* Kill call to $wgUseMemCached in includes/ProxyTools.php
2008-03-01 15:08:49 +00:00
Bryan Tong Minh
29248e7a4f
Fix description for UploadComplete hook. New hooks: FileDeleteComplete, FileUndeleteComplete
2008-03-01 13:35:01 +00:00
Alexandre Emsenhuber
664ad23883
* Document ParserMakeImageParams hook
...
* Fix capitalization of @addtogroup in RepoGroup.php
* Fix comment in SpecialRevisiondelete.php, replace xml functions from wf* to Xml::* and use __METHOD__ instead of hardcoded function name
2008-02-29 19:58:50 +00:00
Aryeh Gregor
4ee532af65
Add new hook ImageBeforeProduceHTML, per request on Wikitech-l. If it sucks or is broken, please revert or fix. :)
2008-02-26 17:20:39 +00:00
Ryan Schmidt
3ab7b9b0d7
* EditPageBeforeEditButtons hook now passes EditPage object for reference
2008-02-13 00:31:02 +00:00
Ryan Schmidt
73b21b4f19
* Renamed hook 'ModifyEditButtons' to 'EditPageBeforeEditButtons' for naming consistency
...
* Update hooks.txt
2008-02-13 00:13:57 +00:00
Huji
c525c447c7
Adding ParserFirstCallInit to the documentation
2008-02-10 11:39:39 +00:00
Bryan Tong Minh
8599bbee84
New hooks: LinksUpdate, LinksUpdateComplete. Add function getTitle to LinksUpdate.
2008-02-09 12:32:32 +00:00
Brion Vibber
6e63f4cbad
Add SearchGetNearMatch hook, have TitleKey provide a case-insensitive exact match for "go" searches.
2008-01-31 20:51:42 +00:00
Brion Vibber
7a3227596e
* Merged backends for OpenSearch suggestions and AJAX search.
...
Both now accept namespace prefixes, handle 'Media:' and 'Special:' pages,
and reject interwiki prefixes. PrefixSearch class centralizes this code,
and the backend part can be overridden by the PrefixSearchBackend hook.
2008-01-30 01:07:49 +00:00
Raimond Spekking
9e5594353f
Add an info to the comment field of the newuserlog when an account was created "by email"
...
This was inspired by bug 12767 to identify such accounts.
2008-01-29 16:18:55 +00:00
Roan Kattouw
b94eff773e
Adding SkinSubPageSubtitle hook on Wiredtape's request.
2008-01-29 15:05:48 +00:00
Brion Vibber
24cf0360fa
Document new hook UserCanSendEmail
2008-01-29 00:31:26 +00:00
Victor Vasiliev
afde502b54
* Introduce getUserPermissionsErrorsExpensive hook
2008-01-14 13:50:55 +00:00
Victor Vasiliev
14815c09ce
Add some variables to globals.txt
2008-01-08 18:22:46 +00:00
Aryeh Gregor
b24975a3ff
Clarify in getUserPermissionErrors hook documentation that errors should not be made red, bold, etc.
2008-01-02 02:05:01 +00:00
Victor Vasiliev
b503237a8b
Add user parameter to AutopromoteCondition hook. Document it
2007-12-23 18:33:46 +00:00
Raimond Spekking
0693d79fb6
* (bug 12257) Update some documentation files
...
Patch by Alexandre Emsenhuber
2007-12-10 12:51:45 +00:00
Victor Vasiliev
483f85fcf8
Introduce an "AbortMove" hook
2007-12-08 18:30:00 +00:00
Aaron Schulz
f2b99c88e0
*Add hook when a revision is restored (for flaggedrevs, next commit)
2007-12-07 22:51:00 +00:00
Raimond Spekking
06be63aa1c
* (bug 12174) Update hooks.txt. Change Linker.php to use the hook name directely in wfRunHooks so that
...
maintenance/findhooks.php doesn't say that 'EditSectionLink' and
'EditSectionLinkForOther' aren't found in MediaWiki code.
Patch by Alexandre Emsenhuber
2007-12-03 19:47:11 +00:00
Thomas Bleher
c6f80ed0c6
* Minor style fix:
...
Normally, the function parameter to wfRunHooks() is enclosed in single
quotes. Fix this in includes/SpecialPreferences.php.
* Make maintenance/findhooks.php more tolerant, so it accepts both
quoting styles.
* Fix a typo in hooks.txt (the hook is 'userCan', not 'UserCan').
2007-11-30 17:28:24 +00:00
ThomasV
abf601e0fc
* got rid of magic codes for colours.* added hook for link recolouring by extensions* merged redundant stub tests in one single function, getLinkColour (Linker.php)
...
* deprecated makeStubLink and makeStubLinkObj
2007-11-22 15:54:18 +00:00
David McCabe
5549750977
The uncontroversial Liquid Threads hooks.
...
The hook SkinTemplateTabAction got left in from a previous attempted commit, but the documentation is added in this commit. The other new hooks here are ChangesListInsertArticleLink, MediaWikiPerformAction, and BeforeWatchlist.
2007-11-06 01:16:25 +00:00
Nick Jenkins
fbb88c7b03
Add LogLine hook as per described in the updates to docs/hooks.txt
2007-11-01 07:02:02 +00:00
Aaron Schulz
f4e4edaf3d
*Add and document ArticleRollbackComplete hook. Lets FlaggedRevs be able to autoflag rollbacks when possible.
2007-10-30 07:58:15 +00:00
Aryeh Gregor
1c1399a3c9
There's no such thing as $this in static functions. Thanks, Nikerabbit.
2007-10-21 18:48:55 +00:00
Aryeh Gregor
5ee4c051b4
isValidEmailAddr hook added to User method of that name, to allow, e.g., restricting e-mail addresses to a specific domain
2007-10-21 17:15:37 +00:00
Andrew Garrett
1e0651dce7
* Add a new hook getUserPermissionsErrors, which is a more modern version of the userCan hook. userCan hook marked as deprecated, as this one allows you to actually say to the user WHY they can't edit an article, as opposed to just that they can't.
...
As a side-note, magic_quotes_gpc sucks. Two file-saves with it on, and I spent 45 minutes fixing it up, with a hacky perl script.
2007-10-10 09:56:47 +00:00
Brion Vibber
ccf45d6c91
add missing $article param to ArticleViewHeader doc
2007-09-13 20:16:52 +00:00
Rob Church
03d280b774
Re-alphabetise a few hooks
2007-08-28 21:53:50 +00:00
Tim Laqua
ef7d430773
Added SkinAfterBottomScripts hook to Skin::bottomScripts(), documented in hooks.txt
2007-08-23 22:34:12 +00:00
Aaron Schulz
a3223695ec
Tweak ArticleUpdateBeforeRedirect hook a tad
2007-08-15 22:52:55 +00:00
Aaron Schulz
3343ea495e
*Add ArticleUpdateBeforeRedirect hook, to allow for the page to redirect out differently after editing (needed for flaggedrevs)
...
*Document ArticleUpdateBeforeRedirect hook
2007-08-15 22:13:03 +00:00
Rob Church
03ef70741d
* (bug 10859) Introduce 'UserGetImplicitGroups' hook; see docs/hooks.txt for more information
...
* Move the list of implicit groups in User::getAllGroups() to a new User::getImplicitGroups() method so there's no confusion over where to add these
2007-08-09 16:36:15 +00:00
Daniel Kinzler
04a321cb26
adding generic hook points to SpecialPreferences
2007-07-30 22:52:37 +00:00
Rob Church
6af49f93c1
* Pass new Revision to the 'ArticleInsertComplete' and 'ArticleSaveComplete' hooks; see docs/hooks.txt for more information
...
* Document 'ArticleInsertComplete' hook
2007-07-22 23:16:48 +00:00
Rob Church
3811372d73
Introduce 'UserGetRights' hook; see docs/hooks.txt for more information
2007-07-21 01:00:42 +00:00
Aaron Schulz
ba2e9b1f4f
*Decrappify inefficient hook/link update scheme for this extension
2007-07-18 08:49:24 +00:00
Rob Church
396524f674
Pass the user as an argument to 'isValidPassword' hook callbacks; see docs/hooks.txt for more information
2007-07-17 22:30:52 +00:00
Rob Church
e9aa9d20b9
* Clean up User::isValidPassword()
...
* Document 'isValidPassword' hook
2007-07-17 16:44:40 +00:00
Rob Church
afd0b0dea5
Less verbose; don't bother with "return not evaluated", gives the wrong impression (i.e. hooks *have* to return something) - if the return would affect whether or not an operation occurs, it's probably better to be explicit about this, e.g. "Set $result and return false to override..."
2007-07-16 11:30:27 +00:00
Rob Church
34b282564b
Rename 'SpecialContribSubEnd' hook to more appropriate 'ContributionsToolLinks', pass user identifier as first parameter, correct misleading documentation ($nt is a Title, not a User), use standard language in release notes as for other hooks
2007-07-16 11:21:21 +00:00
Daniel Cannon
2f3c0ca5d1
Document recently added SpecialContribsSubEnd hook, as well as SpecialContributionsBeforeMainOutput (which apparently didn't get documented when it was added).
2007-07-16 07:11:25 +00:00
Aryeh Gregor
9ec190c545
Revert r23617 per Brion
2007-07-02 23:22:39 +00:00
Aryeh Gregor
5f392f7f48
* (bug 10422) Change <pre> on CSS/JS pages to <div> and allow wikitext
...
* Remove now-unused ShowRawCssJs hook, unless someone can think of a reason someone would want to use it when wikitext is allowed inside it
Patch to SyntaxHighlight_GeSHi to come in a moment.
2007-07-01 19:57:30 +00:00
Rob Church
8a2aee5478
Hook callbacks for 'ShowRawCssJs' should do their own output, if so desired; don't trust the text we get back from the hook.
2007-06-29 13:52:54 +00:00
Rob Church
51c3e790e1
Clean up handling of custom CSS and JavaScript pages in Article::view():
...
* Don't use parser cache, output is garbled
* Run 'ShowRawCssJs' hook
2007-06-29 04:31:19 +00:00
Rob Church
32a7750855
* Introduce 'UserEffectiveGroups' hook; see docs/hooks.txt for more information
...
* Add User::getRegistration() accessor
2007-06-27 14:32:31 +00:00
Rob Church
2a4782996b
Some updates; regarding method/member visibilities, OutputPage is not Parser, and Language objects
2007-06-26 21:03:59 +00:00
Brion Vibber
e2c9a47729
don't mix spaces and tabs in code examples, or the WHITESPACE GODS SHALL SMITE THEE
2007-06-18 15:37:10 +00:00
Brion Vibber
d08a0019f2
whitespace consistency
2007-06-18 15:34:04 +00:00
Brion Vibber
b493452b04
cap consistency; testing commit notices
2007-06-18 15:30:39 +00:00
Brion Vibber
9ec3293000
remove extra whitespace; testing commit notifications
2007-06-18 15:25:13 +00:00
Brion Vibber
0f3682d093
some minor fixlets, checking commit notifications
2007-06-18 15:20:13 +00:00
Rob Church
ff56ef8158
Add missing $hint to 'EditSectionLink' hook call
2007-06-05 12:54:13 +00:00
Rob Church
50d9bbfef8
(bug 10139) Introduce 'EditSectionLink' and 'EditSectionLinkForOther' hooks; see docs/hooks.txt for details [patch from Jack D. Pond, with small modifications]
2007-06-05 01:50:33 +00:00
Aaron Schulz
686ed73f85
*Document old ArticleViewHeader hook
2007-06-03 22:34:53 +00:00
Aaron Schulz
8fcdd27b0e
*Document some hooks
2007-06-01 13:17:24 +00:00
Brion Vibber
a07b2e052e
note update frequency... testing SVN notification
2007-05-31 22:21:36 +00:00
Brion Vibber
777c16b699
Removing user.txt as redundant. The field information is in tables.sql docs, and the few bits about the object are more thoroughly documented on the class file docs.
2007-05-31 21:52:00 +00:00
Brion Vibber
950d9b8999
Add a link to online docs... mainly testing the new svn server
2007-05-31 21:39:25 +00:00
Brion Vibber
46a24d34d8
Making a commit on the new server to test that it works...
2007-05-31 21:30:32 +00:00
Robert Stojnić
5bb10802f9
Revert r22403 for the moment. Probably should ask Brion before changing dtds.
2007-05-24 18:25:15 +00:00
Robert Stojnić
554937c777
Paired commit with 22402. Makes necessary schema additions for the extra parameter needed for index updates.
2007-05-24 17:42:32 +00:00
Antoine Musso
510bd203e9
Documentation for AlternateEdit hook (triggered on &action=new). Been there for ages.
2007-05-19 21:45:07 +00:00
Magnus Manske
46a6e4efe6
New hook 'ImageOpenShowImageInlineBefore' for upcoming extension
2007-05-16 19:52:22 +00:00
Brion Vibber
50c317ff98
Tweak audit hooks
2007-05-08 18:31:32 +00:00
Nick Jenkins
b4d37577b9
Removing or commenting out unused variables or globals, and adding declarations for two arrays.
2007-05-08 09:09:46 +00:00
Brion Vibber
f13fc04cbf
* Add hooks for captcha in main user login form
...
* Add hook point for detecting and logging login attempts with invalid password
* Add captcha support for triggering a captcha after a bad password attempt. Legit users shouldn't be inconvenienced much, but password-guesser bots will be severely speedbumped.
2007-05-07 21:54:06 +00:00
Rob Church
a1f45be25b
* (bug 9662) Update configuration example [$wgUseMemcached no longer in use]
...
* Minor spacing
2007-05-04 20:47:49 +00:00
Brion Vibber
08833dd4af
Revert 'MonoBookTemplateAboveColumnContent' hook. Seems weirdly skin-specific for no good reason, and generally ugly.
...
There shouldn't be any hook calls in the skin template output at all -- looks like one snuck in before, and it should also be removed and replaced with a general toolbox system. This one won't be allowed to take root first.
2007-05-01 16:31:24 +00:00
Leon Weber
72a85df177
* Added beginnings of WatchlistTicker extension. Works for most cases only,
...
not yet documented, no i18n, not cleaned up; do not use.
* Therefore added 'MonoBookTemplateAboveColumnContent' hook.
2007-04-30 22:29:56 +00:00
River Tarnell
9c06b47065
9697: Adding InternalParseBeforeLinks Parser Hook for Semantic MediaWiki (documentation updates), from Jim R. Wilson
2007-04-25 21:23:43 +00:00
Rob Church
859e431af3
Couple of new hooks; FileUpload and SearchUpdate
2007-04-10 02:18:42 +00:00
Daniel Kinzler
bb4370b2ab
hook point for injecting fields into edit form
2007-04-02 21:53:06 +00:00
Rob Church
80f05ca705
* Update release notes for r20680
...
* Typos in hook documentation
Please remember to document hook additions in both places in future.
2007-03-25 23:42:09 +00:00
Aaron Schulz
446f2d6cab
*Document PageHistoryBeforeList and PageHistoryLineEnding and remove cruft variable from former
2007-03-25 23:20:48 +00:00
Brion Vibber
ddbf0c8423
* Add 'ParserTestTables' hook to expand the list of temporary tables copied
...
by the parser test harness; use for extensions which require the presence
of other tables while they work.
2007-02-09 05:37:44 +00:00
Antoine Musso
ce0fb01d05
New hook: AjaxAddScript. Used to load some more ajax javascripts
2007-01-21 16:46:36 +00:00
Rob Church
e7bf509eab
Introduce 'CustomEditor' hook; see docs/hooks.txt for more information
2007-01-20 19:51:21 +00:00
Rob Church
2d5230dc15
* (bug 8136) Introduce 'ArticleUndelete' hook; see docs/hooks.txt for more info
2007-01-18 07:44:25 +00:00
Rob Church
5cf4e5e937
* Introduce "BookInformation" hook; see docs/hooks.txt for more details
2007-01-16 19:06:56 +00:00
Leon Weber
05b3050d1e
* (bug 8567) Added hook RawPageViewBeforeOutput just before the text is blown out in action=raw,
...
so extensions might influence the output.
2007-01-11 14:50:34 +00:00
Leon Weber
0b5f651045
* Added SkinTemplateOutputPageBeforeExec hook before SkinTemplate::outputPage()
...
starts page output (http://lists.wikimedia.org/pipermail/wikitech-l/2007-January/028554.html )
2007-01-10 15:23:32 +00:00
Brion Vibber
ef17ffa10c
doc updates
2007-01-08 23:28:35 +00:00
Brion Vibber
d6039d6698
more 3am centralauth crap woo
...
* dump $wgCentralAuthState in favor of specific toggles for auto-migration and strict enforcement
* plan to improve that :P
* use new hook to add global id on preferences; will want mor edetail there and a fun link and stuff
* drop the funky https link option for now on the wiki list; think about redoing that later
* use paths on wikis where they're not totally plain so i can tell my links apart on my test box
2006-12-30 11:43:42 +00:00
Rob Church
6be73092db
Introduce 'PingLimiter' hook for overriding the result of User::pingLimiter()
2006-12-22 20:21:14 +00:00
Leon Weber
d830450a8a
Added hook 'EditPage::attemptSave' before an article is saved.
2006-12-01 21:18:40 +00:00
Brion Vibber
bab6c59d8b
* Add AuthPluginSetup hook to override $wgAuth after configuration
2006-11-30 07:47:34 +00:00
Ilmari Karonen
a5e26f5c22
Patch from LeonWP: added UploadForm:BeforeProcessing hook in SpecialUpload.php
2006-11-29 18:21:56 +00:00
Andrew Garrett
4edd511598
hooks.txt documentation for UploadForm:initial hook added in r17917
2006-11-25 13:51:50 +00:00
Nick Jenkins
6fa5563a65
Bug 6977 - 404 for autogenerated database documentation in docs/database.txt ; The meta documentation probably supersedes this.
2006-10-25 07:28:02 +00:00
Nick Jenkins
cc15037f29
Minor path update to example Content_action.php file in docs.
2006-10-21 07:10:33 +00:00
Rob Church
eda6563be1
* Introduce 'BadImage' hook; see docs/hooks.txt for more information
2006-07-02 21:54:34 +00:00
Rotem Liss
8c5db2a52d
Documentation file about the magic words.
2006-06-26 16:05:38 +00:00
Rob Church
048021c14a
(bug 672) Add MathAfterTexvc hook
2006-06-26 15:50:03 +00:00
Rotem Liss
1755a0ff6f
Revert due to brion's request.
2006-06-25 20:00:17 +00:00
Rotem Liss
9accc9babc
Some docs about magic words and the new hooks.
2006-06-25 19:45:31 +00:00
Rob Church
61f169c21b
Introduce 'FetchChangesList' hook; see docs/hooks.txt for more information
2006-06-21 00:18:55 +00:00
Rob Church
e4be20b3be
De-document RunUnknownJob hook, since it no longer exists (will re-add a mechanism to use the improved Job subclassing stuff later)
2006-06-20 23:24:59 +00:00
Domas Mituzas
1c60ec49ad
fix broken url
2006-06-19 18:45:49 +00:00
Rob Church
67ee817f0e
(bug 6095) Introduce RunUnknownJob hook, see docs/hooks.txt for more information
2006-06-15 06:35:24 +00:00
Rob Church
11ea8511f2
Introduce EditFormPreloadText hook, see docs/hooks.txt for more information
2006-06-14 13:12:08 +00:00
Rob Church
710f298b4d
Add hooks to manipulate the sitenotice/anonnotice:
...
* SiteNoticeBefore
* SiteNoticeAfter
2006-06-04 16:55:19 +00:00
Jens Frank
10ad773a43
(bug5077) added BeforePageDisplay hook
2006-05-27 08:23:05 +00:00
Brion Vibber
2fb7f4fdb2
To simplify the lives of extension developers, the logging type arrays can now be appended to directly by an extension setup function. It is no longer necessary to write four separate functions just to add a custom log type.
...
The old hooks for this are retained for backwards compatibility, but are deprecated.
2006-05-25 07:37:20 +00:00
Brion Vibber
6e71a93363
* Add 'DiffViewHeader' hook called before diff page output
2006-05-24 09:05:49 +00:00
Rob Church
7c891d56e5
(bug 5819) Fix the PersonalUrls hook so it's useful
2006-05-17 07:02:06 +00:00
Antoine Musso
111f090a66
Document UnwatchArticleComplete
2006-05-10 15:30:43 +00:00
Rob Church
c18543d893
(bug 5819) Add 'PersonalUrls' hook
2006-05-08 22:20:55 +00:00
Brion Vibber
a843035212
Fix that optional error return for EditFilter hook.
...
Didn't work at all previously, with two entire ways to prevent the value being passed along. :)
2006-05-07 07:26:25 +00:00
Rob Church
f064b66c64
(bug 5841) Allow the 'EditFilter' hook to return a non-fatal error message
2006-05-06 21:41:53 +00:00
Antoine Musso
fa1b7edec3
basic script to find undocumented / deprecated hooks.
2006-05-02 20:59:56 +00:00
Rob Church
1fa272c8f4
Documentation didn't go through...
2006-05-02 20:07:54 +00:00
Brion Vibber
1bd66ea935
* (bug 3884) Add $user parameter to AddNewUser hook, call it for by-email
...
registrations as well as self-registrations.
2006-04-17 04:06:13 +00:00
Rob Church
6021507111
(bug 3359) Add hooks on completion of file upload
2006-04-13 18:29:18 +00:00
Brion Vibber
3bbf7dcbd2
Remove .cvsignore files
2006-04-05 08:23:27 +00:00
Brion Vibber
b81d273969
Wrap lines
2006-04-05 08:03:43 +00:00
Domas Mituzas
9a146b181d
Hooks:UserCan: allow advisory external checks instead of overriding ones
...
This allows targeted rules to be imposed without mocking up with core code too much.
2006-04-04 08:46:06 +00:00
Rob Church
fd2fd4ec47
Add UserRights hook, fires after a user's group memberships are changed
2006-03-29 02:31:15 +00:00
Brion Vibber
f992904395
Revert corruption... new abilities need a new spec version.
2006-03-22 21:52:44 +00:00
Magnus Manske
c3c7c9db08
Special:Export can now return a list of contributors per article, without having to
...
dump the entire history. It will not alter or slow exports unless specifically requested.
Note that export-0.3.xsd was slightly expanded for this; maybe we should move to 0.4?
2006-03-22 13:17:44 +00:00
Rob Church
1d24cd2354
Document new hook to avoid brutal stabbing by Vibber the Vicious
2006-02-05 18:53:37 +00:00
Brion Vibber
1e5da17de5
* Adjust user login/creation form hooks to work with a captcha plugin
2006-01-29 07:35:28 +00:00
Brion Vibber
03b9a2303d
* (bug 4104) 'OutputPageBeforeHTML' hook to postprocess article HTML on
...
page view (comes after parser cache, if used). Patch by ThomasV.
http://bugzilla.wikimedia.org/attachment.cgi?id=1290&action=view
http://bugzilla.wikimedia.org/attachment.cgi?id=1296&action=view
http://bugzilla.wikimedia.org/attachment.cgi?id=1297&action=view
2006-01-13 17:00:05 +00:00
Tim Starling
f76372feee
Some information about database access in MediaWiki.
2006-01-08 03:50:37 +00:00
Tim Starling
f2a59db33f
Removed $wgLinkCache, converted to a singleton. Removed obsolete cruft from LinkCache.php.
2006-01-05 02:05:53 +00:00
Rob Church
fe66cac6cb
* Bug 4456: Add hook for marking article patrolled
2006-01-03 15:45:36 +00:00
Tim Starling
81217f55a0
* Added templatelinks table. The table currently represents a literal list of templates included from each article. That is, the table contains pages which were actually loaded during parsing, not the markup which went into resolving their names.
...
* Ended the role of $wgLinkCache in link updates. Instead, links (and related entities) are registered in the ParserOutput object during a parse. The LinksUpdate constructor now takes a ParserOutput object as a parameter. $wgLinkCache is still used, but only as a cache of article IDs.
* Because the link list is now saved and restored in the parser cache, meta tag keywords now work on parser cache hits. Some refactoring took place in this area.
* Rendering of the HTML for category links has moved from Parser to OutputPage.
* Did some general pottering around in Article.php, such as allowing an Article object to be created with a specified revision ID, thereby optionally removing the dependence on $wgRequest. Not used at the current time.
* A few documentation tweaks.
2005-12-30 09:33:11 +00:00
Brion Vibber
2ec5f7958b
* Add 'GetInternalURL' hook to match the GetFullURL and GetLocalURL ones
2005-12-26 07:14:42 +00:00
Brion Vibber
e69ea9b6d2
* Added 'PageRenderingHash' hook for changing the parser cache hash key
...
from an extension that changes rendering based on nonstandard options.
2005-12-25 11:04:40 +00:00
Tim Starling
6f30897671
PHP hates globals
2005-12-23 07:25:44 +00:00
Domas Mituzas
ed21293445
AutoAuthenticate hook for external User suppliers
2005-12-20 21:25:54 +00:00
Brion Vibber
02de196586
* Add a hook for additional user creation throttle / limiter extensions
2005-12-17 03:18:39 +00:00
Brion Vibber
c8508a60ee
* Add UploadVerification hook for custom file upload validation/security checks
2005-09-06 04:53:59 +00:00
Antoine Musso
a408a25266
fix 3175
2005-08-23 21:47:44 +00:00
Niklas Laxström
7a82547da6
typo, i assume
2005-08-18 23:59:01 +00:00
Antoine Musso
2546b3eb87
typo
2005-08-18 16:05:52 +00:00
Brion Vibber
380f4da600
* (bug 3175) update filenames in documentation files
2005-08-17 19:48:24 +00:00
Ævar Arnfjörð Bjarmason
545cea89f6
* Added a new hook, 'AddNewAccount', which is run after account creation
2005-08-17 07:44:38 +00:00
Ævar Arnfjörð Bjarmason
ace93db499
* Adding a SkinTemplateContentActions hook to be able to modify the
...
$content_actions array from an extension.
2005-08-09 08:01:55 +00:00
Antoine Musso
a650cff446
lists hooks added in LogPage.php v1.34 by Avar.
2005-07-29 15:08:57 +00:00
Antoine Musso
a3fe687019
simple README
2005-07-05 21:46:27 +00:00
Brion Vibber
b0e8101feb
Export tweak: use xml:space on <text> elements as an extra hint
2005-07-05 00:07:21 +00:00
Brion Vibber
b6fcde5333
Update export schema to version 0.3, including some site configuration data.
2005-07-04 23:43:47 +00:00
Brion Vibber
a1fb3b5306
* (bug 2275) Update search index more or less right on page move
2005-06-01 02:31:45 +00:00
Brion Vibber
a7ed5c0ec6
Updated export schema: added an <upload> element which may be used in
...
<page>s alongside <revision>s. For image pages these will contain
file data: filename, size, URL at which it can be found.
This is used by the OAI updater system.
2005-05-19 09:37:12 +00:00
Brion Vibber
5fdbef206f
Move schema documentation to inline comments in tables.sql,
...
where it's less likely to be left years out of date.
2005-05-02 08:07:38 +00:00
Gabriel Wicke
f3810a3c70
CategoryPageView hook as in 1.4
2005-04-25 11:09:21 +00:00
Ævar Arnfjörð Bjarmason
813fd1db1a
* Changed Wikipedia to MediaWiki.
2005-04-12 02:18:57 +00:00
Brion Vibber
27b500c4aa
Change .doc extension to .txt so people stop asking why we have Word documents. WE DONT THEY ARE TEXT!!!!111eleven
2005-04-12 00:41:38 +00:00
Evan Prodromou
d63d4248a6
Changed the calling protocol for function wfRunHooks() in Hooks.php.
...
Previously, this function used variable arguments to allow
different hooks to pass different parameters. However, var args
silently convert reference-calling to value-calling. So a call
that used to work like this:
# old
wfRunHooks('SomeEvent', $param1, &$param2, $param3);
...now works like this:
# new
wfRunHooks('SomeEvent', array($param1, &$param2, $param3));
Hook functions can now change pass-by-reference parameters correctly
(e.g. $param2 in the above example).
All calls to wfRunHooks() were changed and tested, and the change
was documented in docs/hooks.doc. This change was originally checked
in on REL1_4 branch as a bugfix, but per vibber reverted and checked
in to HEAD instead.
2005-03-13 15:29:43 +00:00
Brion Vibber
0eaca3d675
Put the schema at a shorter url
2005-01-25 14:23:33 +00:00
Brion Vibber
8ed7219f4c
contributor <id> appears after <username> when present, not before
2005-01-25 13:17:28 +00:00
Brion Vibber
9ede273bfd
XML Schema description of the Special:Export format.
2005-01-25 09:00:49 +00:00
Evan Prodromou
2f4a80f6ef
Further explanation as to why to avoid CVS keywords.
2004-12-02 19:57:34 +00:00
Evan Prodromou
2103572a1b
Added hooks for watching and unwatching articles. Documented in
...
hooks.doc, and an example in Syslog extension.
2004-11-30 05:45:56 +00:00
Evan Prodromou
4b42f18b66
Removed CVS keywords from files, to make merging between branches
...
easier. Interpolated keywords cause lots of conflicts and headaches at
merge time for older (<1.12.x) CVS versions.
2004-11-29 18:25:30 +00:00
Evan Prodromou
778c431bfc
Added hook events for "E-mail this user" feature. Documented in
...
hooks.doc, and added a sample hook to Syslog extension.
2004-11-29 04:23:12 +00:00
Evan Prodromou
bd8995d35e
Added "unknown action" event, so that extensions can define new
...
actions and handle them. Documented in hooks.doc, but not really
appropriate for the Syslog extension, so ignored.
2004-11-28 07:06:25 +00:00
Evan Prodromou
f2b7dcc7b1
Add event hooks for article save. Documented in hooks.doc, and example
...
in Syslog extension.
2004-11-28 06:45:24 +00:00
Evan Prodromou
031949ee65
Add event hooking for article deletion. Add a hook for article
...
deletion in the Syslog extension to test/demonstrate/whatever.
Document the events in hooks.doc.
2004-11-28 06:15:22 +00:00
Evan Prodromou
9dd7c7939a
Per brion's suggestion, changed <? to <?php in Syslog, and change
...
functions to strings in Syslog and hooks.doc examples.
2004-11-28 00:51:43 +00:00
Evan Prodromou
4c23bcc198
Added hook events for article protection. Added sample code to Syslog
...
extensions, and documented in hooks.doc.
2004-11-28 00:20:37 +00:00
Evan Prodromou
34ac5745f9
Added event-hooking code for blocking users and IPs. Added a handler
...
to the Syslog extension for blocked users to test this event. Added
documentation for the event to hooks.doc.
2004-11-27 23:57:55 +00:00
Evan Prodromou
7a57bb56af
Add an extension for logging MediaWiki events to the system logger
...
(syslog). Although intended to be useful, it's more of a testbed for
event hooks than anything else. For a first pass, started logging user
login and user logout events. Had to add hooks-running code to the
login and logout modules, but that's kind of the point. Documented the
three events added in hooks.doc.
2004-11-27 23:10:05 +00:00
Evan Prodromou
80d9f05b37
Add a system of hooks to allow third-party code to run before, after, or
...
instead of -- MediaWiki code for particular events (article rollback,
user ban, etc.). Framework is in place; hooks are not yet in place
in the mainline code.
2004-11-27 21:43:06 +00:00
Antoine Musso
eb8e78e265
We dont want to commit phpdoc generated documentation in cvs. It is better to generate it localy.
2004-11-12 21:08:27 +00:00
Wil Mahan
fb4fa0f0a8
Remove the "random" table since it is no longer used;
...
document categorylinks, hitcounter, searchindex,
interwiki, and user.user_token
2004-09-29 04:28:40 +00:00
Brion Vibber
699a4f9b99
Remove hard-coded paths from documentation generation script, and don't allow running except from CLI.
...
Added --all option to skip the prompt so this can be run as part of an automated release build process.
Place the generated files into docs/html.
2004-09-04 01:58:17 +00:00
Antoine Musso
7dbd56950b
New system to generate $wgValidSkinNames by listing available dirs. Skins using PHPTal will not load and the software fallback to the standard skin. Added 2 samples for skin designers and updated doc
2004-09-02 03:24:01 +00:00
Arne Heizmann
3dfc9838a6
Some English fixes, and change "Wikipedia" to "MediaWiki".
2004-08-12 14:45:47 +00:00
Antoine Musso
4ca518aa5a
Very simple documentation.
2004-08-12 14:37:15 +00:00
Brion Vibber
2149d11dfe
The horror... the horror...
2004-08-11 10:09:11 +00:00
Arne Heizmann
40b461ee81
sp
2004-07-25 12:45:24 +00:00
Erik Moeller
1dea93f758
using index.php and redirect.php instead of wiki.phtml and redirect.phtml
...
keeping phtml stubs around for compatibility and CVS history
2004-02-28 03:04:02 +00:00
Tim Starling
e2f98922df
Two blocking features: IP range blocks, and expiry times configurable block-by-block.
...
Possible issue: uses strtotime(), which is very handy but in English
2004-02-14 12:37:25 +00:00
Tim Starling
d6dd3689f8
Better namespace 8 updating, and watchlist caching in memcached.doc
2004-01-25 02:40:50 +00:00
Tim Starling
ee4c7f2f49
Various fixes, see the version of [[m:Development status]] before this commit for details
2003-11-02 13:57:24 +00:00
Tim Starling
6d7467b131
More minor wfMsg() fixes
2003-10-21 13:06:15 +00:00
Tim Starling
a2bc5d8338
MediaWiki namespace
2003-09-21 13:10:10 +00:00
Tim Starling
ff0f56bc8c
Autoblocker privacy protection
2003-09-07 13:56:25 +00:00
Brion Vibber
786163084b
Update memcached client to 1.0.10
2003-08-21 07:03:10 +00:00
Brion Vibber
fd305c509f
Initial support for memcached.
...
Includes PHP MemCachedClient 1.0.8 by Ryan Gilfether, under GPL license.
2003-08-11 13:53:20 +00:00
Lee Daniel Crocker
d82c14fb4f
Initial revision
2003-04-14 23:10:40 +00:00