Commit graph

315 commits

Author SHA1 Message Date
Andrew Garrett
9a3c1fcede Branch merge of change-tagging branch with trunk
-- Introduce tagging of individual changes (revisions, logs, and on recentchanges). The tags are customisable, and currently settable by the Abuse Filter and by the TorBlock extension. The tags can be styled on the various pages on which they appear.
-- Introduces a schema change, three new tables (valid_tag, change_tag, and tag_summary).
2009-01-28 19:08:18 +00:00
Jack Phoenix
680b3a56bb adding a new hook from wikia codebase into SpecialWantedpages.php to allow extensions to alter the SQL query 2009-01-19 15:35:15 +00:00
Raimond Spekking
802bdecbeb self revert r45512, r45513 and r45515 for now
Per Brions review on r45512. I need a bit more time to fix it.
2009-01-17 08:56:27 +00:00
Nathaniel Herman
4c9d5a0eb0 Add new hook 'UserLoadFromDatabase' that is called while loading a user from the database. 2009-01-16 23:34:38 +00:00
Aaron Schulz
220c59be9a (bug 16923) New parameter value diff=review for the URL 2009-01-07 21:09:18 +00:00
Raimond Spekking
35383a74e3 * Extend language::getLanguageName to return localized language names if available
* Therefore added a hook to catch them from an extension (successfully tested with the cldr extension (see next commit))
* Add a title tag to the interlanguage box entries. Only added when the title differ from the shwon text.
No change of behaviour until an extension is enabled.
2009-01-07 19:19:25 +00:00
Aaron Schulz
f84ef99841 Expand ArticleRollbackComplete hook to include reverted rev 2009-01-04 12:27:08 +00:00
Brion Vibber
3e69f5237d Revert r44867 "Improve markpatrolled hook"
Incompatible change to existing hook (changing types of parameters passed)
2008-12-23 20:56:19 +00:00
Aaron Schulz
6444714ca6 Avoid extra page_touched query 2008-12-22 07:35:56 +00:00
Aaron Schulz
87fbe10e1f *Replace crappy BeforeWatchlist hook
*Updated LQT accordingly
*Will add flaggedrevs function to this shortly
2008-12-21 21:31:06 +00:00
Aaron Schulz
c29b5243ab Improve markpatrolled hook 2008-12-21 08:49:45 +00:00
Aaron Schulz
5a90ec2632 Add EditPageBeforeEditChecks hook for bug 16713 2008-12-20 01:15:40 +00:00
Ryan Schmidt
d6a2ba6f34 * adding two hooks UserCryptPassword and UserComparePasswords to allow extensions to change how passwords are hashed in the database 2008-12-19 23:18:44 +00:00
Alexandre Emsenhuber
437257ddcc document SetupAfterCache hook ;) 2008-12-11 11:50:45 +00:00
Nathaniel Herman
8802bc8ec3 Update on r44048:
Removing SpecialListusersGetGroups hook completely, and changing the 
UsersPager::getGroups function to use User::getEffectiveGroups instead
of directly making a DB query itself.
2008-12-04 01:39:01 +00:00
Aaron Schulz
5f51911338 Tweak r44049: remove 'showEditUserGroupsForm' hook altogether 2008-12-03 06:14:15 +00:00
Nathaniel Herman
39d96012ec * Modified hook UserRights::showEditUserGroupsForm to actually be able to do
something, before it was using $addable and $removable which are not used in
  the showEditUserGroupsForm function since r32610, now it uses $groups instead.
* Changed a $user->getGroups call in showEditUserGroupsForm to use $groups
  instead, the function is passed $groups, which is supposed to be an array of
  groups the user is in, so no point in getting the array again
* Removed a useless line of code in showEditUserGroupsForm 
  "list( $addable, $removable ) = $this->splitGroups( $groups );"
  this was never removed from when $addable and $removable were changed to 
  just $groups, and so it does nothing and is just confusing.
2008-11-29 20:52:14 +00:00
Nathaniel Herman
f52a47c2a1 * Added hook SpecialListusersGetGroups which is called right before the
end of UsersPager::getGroups() and can be used to add to the user's  
  groups.
2008-11-29 19:45:10 +00:00
Aaron Schulz
5621549851 Add $user to NewRevisionFromEditComplete hook 2008-11-27 18:32:29 +00:00
Brion Vibber
add48e7f15 Revert r43592 "Pass the user object in MakeGlobalVariablesScript in case some variables are user-dependent."
As a UI thingy, $wgUser will be the only relevant user object here; there's no circumstance in which we might pass some other user object. No reason to pass it to hooks just on the off chance that they might use it, then...
2008-11-17 20:04:50 +00:00
Chad Horohoe
0c890862b2 Pass the user object in MakeGlobalVariablesScript in case some variables are user-dependent. 2008-11-17 02:33:29 +00:00
Jack Phoenix
3eb0e98e2c adding AbortDiffCache hook to allow canceling the caching of a diff 2008-11-06 21:41:07 +00:00
Brion Vibber
29e8213898 Revert r42584 "Hook SkinTemplateTabAction now passes $title by reference allowing it to be changed by extensions"
$title is used previous to this call, so that isn't an appropriate place to change it.
2008-10-26 01:47:07 +00:00
Jack Phoenix
520dadee69 added new hook, UserRights::showEditUserGroupsForm from Wikia codebase 2008-10-25 22:37:56 +00:00
Bryan Tong Minh
3a0e932996 Hook SkinTemplateTabAction now passes $title by reference allowing it to be changed by extensions 2008-10-25 22:25:24 +00:00
Brion Vibber
2b8a8b2624 Pulling out r42105 for now -- "Added 2 hooks. One in Parser to allow custom handling of namespace links, and one in EditPage, to allow custom output/handling when a user has no edit rights"
The namespace parsing thing feels very hacky and grabs bits out of an internal implementation function which doesn't feel like a stable interface.
Would recommend thinking about this and coming up with a more serious stable interface for it.
2008-10-15 20:57:02 +00:00
Jason Richey
a719d5ff1c Added 2 hooks. One in Parser to allow custom handling of namespace links, and one in EditPage, to allow custom output/handling when a user has no edit rights 2008-10-15 19:32:59 +00:00
Ryan Lane
cad03c5fe4 Removing $result from UserLoadAfterLoadFromSession to match User.php 2008-10-13 19:48:20 +00:00
Ryan Lane
3541c3ff92 Fixing documentation line for UserLoadAfterLoadFromSession 2008-10-13 19:26:16 +00:00
Ryan Lane
ff4aab04c5 Adding hook UserLoadAfterLoadFromSession to fix bug 14178 2008-10-13 19:00:54 +00:00
Aaron Schulz
1ac101223c *Remove useless garbage hooks. This kind of stuff shouldn't be in the core. 2008-10-13 04:38:54 +00:00
Aaron Schulz
24fd3960f7 New "ArticleEditUpdates" hook (bug 15490) 2008-09-27 10:52:49 +00:00
Roan Kattouw
353345d6ab API: Adding APIAfterExecute, APIQueryAfterExecute and APIQueryGeneratorAfterExecute hooks to make extending core modules possible in a cleaner way 2008-09-17 18:49:22 +00:00
Tim Starling
6730363fa1 Revert r40627, r40551, r40536, r40535 (mark non-autoconfirmed users in RC and watchlist with an orange asterisk). Potentially slow, potentially controversial, so it needs a configuration option to enable/disable it. 2008-09-16 05:56:43 +00:00
Aryeh Gregor
5ff39d3b93 Make sure to pass the right types to LinkBegin
If Linker::link() is passed an invalid Title, now that it fails gracefully, we should fail gracefully before passing over to the hook.  In theory some hooks might want to override this, but it's unlikely, because any caller that passes a non-Title is probably buggy and should be fixed anyway.  This saves unexpected fatal errors and/or having to add "if( !$target instanceof Title ) return true;" to the beginning of every function hooking into this.

Also ensure that $options is an array before passing to the hook, just for convenience.
2008-09-14 00:49:52 +00:00
Chad Horohoe
bddfe64fc9 Update docs to caution against use of create_function(). Per bug 15476. 2008-09-12 02:45:36 +00:00
Aryeh Gregor
141cacce63 Make 40621 not break CentralAuth
If $injected_html is provided, then the redirect page on login will still be shown.  This is needed for auto-login in CentralAuth.  I can't test that the fix works, though, because I don't have CentralAuth installed.  Unfortunately, this means Wikipedia won't benefit from one less click, but I can't think of an easy way around that.
2008-09-08 22:15:44 +00:00
Aryeh Gregor
c523073ff8 Redirect on login instead of showing a message
This saves a click.  A "You have successfully logged in" message adds no extra information, it just gets in the way -- especially if you got to the login page from a permissions error.  The welcome message is still displayed on account creation.

This slightly modifies the semantics of a hook.  It also makes the loginsuccess message unused, so I've deleted it from the maintenance files and also MessagesEn.  I assume it will automatically vanish from the other message files, or at least that there's some tool to remove it that I don't know about that's better than sed.

This was prompted by discussion on bug 15484.
2008-09-08 21:53:56 +00:00
Roan Kattouw
76635483de (bug 15359) Add APIGetAllowedParams and APIGetParamDescription hooks 2008-09-07 19:04:51 +00:00
Aaron Schulz
9b20471b66 * Mark non-autoconfirmed users in RC
* Avoid overselecting fields in RC and add $fields to SpecialRecentChangesQuery
* Some whitespace tweaks in RecentChange.php. Remove dead code.
* Avoid rc_new check in ChangesList
* Move some "unpatrolled" CSS to shared.css. Add 'newuser' CSS.
* Bump style version
2008-09-06 15:01:59 +00:00
Alexandre Emsenhuber
7f8a5a823b * Document OutputPageCheckLastModified hook
* Added includes/diff/ to the list of paths in maintenance/findhooks.php
2008-09-04 20:38:08 +00:00
Roan Kattouw
3bce068811 Oops 2008-09-04 15:52:23 +00:00
Roan Kattouw
bd3bf5d2a7 * Split patrol code
** Backend code moved to RecentChange::reallyMarkPatrolled() and doMarkPatrolled()
** Adapted Article::markpatrolled()
* (bug 15466) Added action=patrol to the API. Modified patch by Soxred93
* Added rctoken=patrol to list=recentchanges
* Detect duplicate warnings in ApiBase::setWarning()
2008-09-04 15:17:51 +00:00
David McCabe
aca3e5d864 Added OldChangesListRecentChangesLine hook for customizing RC messages in OldChangesList mode. TODO: Customize other ChangesList implementations. 2008-09-03 22:13:03 +00:00
Alexandre Emsenhuber
68ed90f748 Tweaks for SiteConfiguration:
* Introduced SiteConfiguration::$siteParamsCallback, a callback function that returns an array of params to define custom parameters to replace and wiki tags so that they can be used at run time (e.g. for CentralAuth or SiteMatrix), can also override SiteConfiguration::siteFromDB(). See the documentation of that variable for further information. Backward compatibility is maintened for paramters passed to SiteConfiguration::get() and similar functions but the vaules returned by the callback function will override them.
* Added SiteConfiguration::arrayMerge() for merging arrays, written by Werdna. Warning: as array_merge(), it may change numeric keys, so don't use it for settings having namespaces index in keys.
* Removed SiteFromDB hook, deprecated by the callback function
* document a bit
2008-08-25 16:46:34 +00:00
Aaron Schulz
d54064bfd6 Add cache update hook for flaggedrevs 2008-08-22 22:36:02 +00:00
Andrew Garrett
8e22becd1b Quick hook to allow reusers of SiteConfiguration to customise siteFromDB, which is pretty wikimedia-specific 2008-08-22 12:08:21 +00:00
Ryan Schmidt
e128894121 * $wgGroupsAddToSelf and $wgGroupsRemoveFromSelf now work more like
$wgAddGroups and $wgRemoveGroups, where the user must belong to a specified
  group in order to add or remove those groups from themselves.
  Backwards compatibility is maintained.
* Added hook 'UserrightsChangeableGroups' to allow modification of what
  groups may be added or removed via the Special:UserRights interface.
2008-08-14 21:55:17 +00:00
Aaron Schulz
80ee12ab5c * Fix location of $ip check
* Add User::mailPasswordInternal hook for bug 14630
2008-08-14 00:18:21 +00:00
Leon Weber
5ae0f26b1e Introduced a new hook 'SkinAfterContent' that allows extensions to add text
after the page content and article metadata. Updated all skins and skin
templates to work with that hook.

The hook is added in the newly introduced Skin::hookAfterContent(). It
couldn't be implemented anywhere else as we want to be able using a single hook
in all skins:

Some skins are based on SkinTemplate (e.g. MonoBook), while 
some directly extend the Skin class (like CologneBlue). The Skin based ones
collect their output from several functions from Skin class, while SkinTemplate
prepares an array with all the needed data and passes it to the skins using it.

Thus we had to create said new protected function for running that hook. SkinTemplate
pushes the function's output into the data array. The Skin class based skins
directly use the function's output.
2008-08-08 15:53:49 +00:00
Alexandre Emsenhuber
2070b1dba8 Document UserGetReservedNames hook 2008-08-07 16:12:25 +00:00
Aryeh Gregor
81d611bcac Re-commit turning makeKnownLinkObj(), makeBrokenLinkObj(), makeLinkObj() into link() wrappers. This should mean that all link processing now goes through link(). Per Brion's advice, remove the BrokenLink hook and replace it with LinkBegin and LinkEnd hooks. All parser tests pass except the usual suspects. 2008-08-05 17:05:59 +00:00
Jack Phoenix
30487ba4de adding new hook, MakeGlobalVariablesScript 2008-08-01 22:38:11 +00:00
Daniel Friesen
74370b6703 New hook SkinBuildSidebar to allow extensions to modify the sidebar to do things like adding custom portlets. 2008-08-01 14:40:05 +00:00
Aryeh Gregor
a42e23da22 Revert r38165 for now, breaks CentralAuth and I don't have that installed anywhere to debug. 2008-07-29 14:53:10 +00:00
Aryeh Gregor
c51f8ce69d Merge TitleArray and UserArray into one unified class, ObjectArray. Adding support for a new type of object will now just take a few lines. 2008-07-29 00:51:08 +00:00
Aryeh Gregor
39273d2c67 Recommit r38149, with the fatal error fixed. The EditSectionLinkForOther hook is now removed entirely -- EditSectionLink is run unconditionally instead. This is extremely unlikely to break any extensions. 2008-07-28 23:52:55 +00:00
Brion Vibber
8cce306e05 Revert r38149 for now, causes regressions in API parsing.
Bug 14965 - https://bugzilla.wikimedia.org/show_bug.cgi?id=14965

PHP Catchable fatal error:  Argument 1 passed to Title::equals() must be an instance of Title, null given, called in /usr/local/apache/common-local/php-1.5/includes/Linker.php on line 1323 and defined in /usr/local/apache/common-local/php-1.5/includes/Title.php on line 3003 
$wgTitle isn't available in this sort of background rendering.
2008-07-28 23:00:14 +00:00
Aryeh Gregor
34bf34d923 Linker::doEditSectionLink() and Linker::doEditSectionLinkForOther() and their respective hooks are redundant and confusing. They do exactly the same thing with a slightly different interface. Their hooks are not only redundant but relatively ineffective, because they wrap in brackets and a span *after* the hook returns. This makes them useless for, e.g., changing the section edit link to an image (can't remove brackets), or using any block-level element (wrapped in a span).
Make Linker::doEditSectionLink() public, and change its interface to be like that of editSectionLink().  Use that in Parser (which is the only place that uses the old functions that I can find), and mark the old two functions deprecated.  Add a hook 'DoEditSectionLink' with a new, clean interface, which is run immediately before the return so it can override the whole function.  Advise people in hooks.txt to use the new hook, not the old ones.
2008-07-28 20:33:43 +00:00
Brion Vibber
c9365a6364 Revert r38068 "SpecialMovepageBeforeMove hook from Wikia codebase - allows extensions, such as spamRegex, to interfere with page moving"
This passes a MovePageForm, which seems unwise. It won't apply to the edit API, and generally seems like a weak interface -- an internal UI object is passed instead of specific information, leaving it unstable to future changes.
2008-07-28 05:44:18 +00:00
Brion Vibber
dc57160c0d Revert r38040 "new hook, ConfirmEmailComplete"
This hook is incomplete and won't work as advertised. Will fail to run when the email address is confirmed through other means, such as a password reset; also there's no corresponding hook for when the mail gets *un*confirmed, so would lead to inconsistent state.
2008-07-28 05:31:12 +00:00
Alexandre Emsenhuber
139e98bd87 Avoid using $this, it is a reserved word 2008-07-27 18:43:55 +00:00
Jack Phoenix
dfb8cf2d03 SpecialMovepageBeforeMove hook from Wikia codebase - allows extensions, such as spamRegex, to interfere with page moving 2008-07-26 21:38:51 +00:00
Alexandre Emsenhuber
8577bf2876 rm dupe 2008-07-25 20:43:15 +00:00
Aryeh Gregor
d5ce3414df Copy-paste documentation for copy-pasted hook, too. 2008-07-25 19:14:30 +00:00
Jack Phoenix
21c1147643 new hook, ConfirmEmailComplete 2008-07-25 18:11:43 +00:00
Brion Vibber
ed97e482a6 Revert r37924 "(bug 14883) Create hook AlternateSkinPreferences to alternate skin section in user preferences"
This hook seems pretty unclear to me. What's it meant to accomplish? It passes no data to be customized, and has no code interface for building a sustainable, forward-compatible extension from it.
2008-07-23 07:59:38 +00:00
Ryan Schmidt
2c0d815fa3 * (bug 14883) Create hook AlternateSkinPreferences to alternate skin section in user preferences 2008-07-22 21:28:11 +00:00
Alexandre Emsenhuber
986a95a00c * order aplhabetically
* avoid using $this
2008-07-20 13:55:35 +00:00
Aaron Schulz
9897c06a8b * Highlight flagged user contribs (bug 14814)
* Necessary hooks added
2008-07-17 14:55:30 +00:00
Brion Vibber
0b4930fa7a Revert r37741 for now "Changed getInternalLinkAttributesInternal parameters: now accepts Title object if available, passes to hook. Also reordered some code in makeKnownLinkObj so that said hook can mangle the Title object. Reordering should have no other side-effects."
This seems a bit icky and inconsistent. If it's necessary to pass titles around here, it should be done consistently, with appropriate fixups and refactoring to the old spaghetti code.
2008-07-16 10:15:47 +00:00
David McCabe
97c60dcc56 Changed getInternalLinkAttributesInternal parameters: now accepts Title object if available, passes to hook. Also reordered some code in makeKnownLinkObj so that said hook can mangle the Title object. Reordering should have no other side-effects. 2008-07-16 07:22:21 +00:00
Brion Vibber
5c75f383d8 Revert r37686, 37687 for now:
"Improving extendibility of the sidebar improvements, css adding, and also JS variables."

"* New hooks:"
"** SkinSidebarSpecialBox and SkinSidebarOutputSpecialBox to allow extensions to add new custom boxes to Tim's new Sidebar system"
"** SkinSetupSiteCss to allow extensions to modify and add new stylesheets to load into the page. This one allows for fine positioning and can be very useful for things like an extension providing global css for a wiki farm."
"** SkinGlobalVariables to allow extensions to add new global variables to export to the JS variables in the page."

At least some of these appear to duplicate existing functionality -- extensions already can add new stylesheets and JS variables, and I'm pretty sure can add portals as well.
2008-07-15 21:35:32 +00:00
Brion Vibber
f0bcd97be3 Revert r37669: LinkerLinkAttributes hook doesn't seem to make a lot of sense. The parameters passed can't be modified, and they are escaped for output, making it unsuitable as a general extension hook. 2008-07-15 21:16:32 +00:00
Daniel Friesen
81ffc1f019 Improving extendibility of the sidebar improvements, css adding, and also JS variables.
* New hooks:
** SkinSidebarSpecialBox and SkinSidebarOutputSpecialBox to allow extensions to add new custom boxes to Tim's new Sidebar system
** SkinSetupSiteCss to allow extensions to modify and add new stylesheets to load into the page. This one allows for fine positioning and can be very useful for things like an extension providing global css for a wiki farm.
** SkinGlobalVariables to allow extensions to add new global variables to export to the JS variables in the page.
2008-07-15 11:03:04 +00:00
David McCabe
433fe522ec Added LinkerLinkAttributes hook. 2008-07-14 22:29:53 +00:00
Aryeh Gregor
12b4eba6ef Revert r37299. It's causing some extremely strange behavior that I can't pin down. Try copying the text =={{[[Navbox]]}}== into a page, where [[Template:Navbox]] is copied from enwiki. An exhibit is up at <http://en.wikipedia.org/wiki/User:Simetrical/Tl_test> until this fix goes live. This was reported at <http://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Problem_with_.7B.7Btl.7D.7D_in_section_headers> by CapitalR; thanks to RockMFR for tracking down the revision that was causing it.
As a general rule, it would be a good idea to first split the functions off into their own file without changing them, and then refactor them in a separate commit.  Otherwise it's very hard to follow what's actually being changed.  (git actually tracks changes to functions when they're moved across files, incidentally, which is quite awesome.)
2008-07-10 19:18:00 +00:00
Aryeh Gregor
680007475f Fixes for r37489:
* Don't pass $data or $flags by reference.  They're never accessed again, so it makes no sense.
* Document in hooks.txt.
The interface for this hook seems very messy.  It seems like it would be much cleaner to expose $data as $url (null if stored locally); and $flags as an array, or something like that.  If the text is gzipped, the text can be extracted from the Revision and re-gzipped if you really want to for some strange reason.
2008-07-10 18:04:32 +00:00
Brion Vibber
bb3faf9d9b Revert r37490, 37493 for now -- 'NotifyOnPageChangeComplete hook added'
The hook seems a bit odd; it triggers on some of the composes, but not all. There's another loop right after this one.
Also, there's no need to pass objects as references here.
2008-07-10 17:02:39 +00:00
Krzysztof Krzyzaniak
bad9cb5008 NotifyOnPageChangeComplete description 2008-07-10 12:23:21 +00:00
Niklas Laxström
60f3e72328 * Move message functions to own file
* Improve documentation
* Reduce code duplication
* Fix the braindamage that wfMsg and friends were doing transform, but in the wrong language
2008-07-08 08:05:54 +00:00
Ryan Schmidt
a070873551 * Add new hook NormalizeMessageKey to allow extensions to change what system message is being shown before any queries are made 2008-07-07 22:37:42 +00:00
Brion Vibber
742973c85b Revert r37078, 37132 "New hook ParserBeforeTranscludeTemplate:
This hook allows for modification of the title and text of a template which is being transcluded.

Use of this hook will allow extensions to create features such as TransWiki for an alternative to ScaryTransclusions."

This hook seems a bit oddly placed to me; the template gets fetched locally, and *then* we give the opportunity to fetch it remotely instead? Just seems to be in the wrong order, and pretty unclear.
2008-07-05 22:45:37 +00:00
Alexandre Emsenhuber
de9c02190c * Added $IP in dirs for OpenSearchUrls hook
* getHooksFromDoc() now returns an unique array
* 80 chars per line in docs/hooks.txt
2008-07-05 11:36:55 +00:00
Daniel Friesen
e339f61471 New hook ParserBeforeTranscludeTemplate:
This hook allows for modification of the title and text of a template which is being transcluded.

Use of this hook will allow extensions to create features such as TransWiki for an alternative to ScaryTransclusions.
2008-07-05 03:36:12 +00:00
Roan Kattouw
0104fa1f0c Rewritten the way the API handles tokens:
* Instead of hardcoding stuff all over the place, use callbacks
* Extensions can now add their own tokens to prop=info or prop=revisions using hooks
2008-07-04 12:07:02 +00:00
Aaron Schulz
58f01b0645 Re-commit fixed r37006 2008-07-04 09:38:12 +00:00
Brion Vibber
bbaa82d5f9 Revert r37006 -- causes fatal errors:
PHP Fatal error:  Using $this when not in object context in Article.php on line 135
2008-07-04 00:04:58 +00:00
Aaron Schulz
8c77d16317 Make redirects work properly with flagging (bug 14714) 2008-07-03 20:37:44 +00:00
Brion Vibber
918ec72c43 Revert the rest of r36804 -- ExtendJSGlobalVars and wfMessageCacheReplace hooks.
ExtendJSGlobalVars is probably ok in function, though I don't really like its name.

wfMessageCacheReplace seems really unclear as to what it's trying to accomplish.
2008-07-02 22:56:15 +00:00
Daniel Kinzler
4ae25d6b4c Add hook to replace logic for generating category links. May be used by CategoryTree one day. 2008-07-02 20:02:51 +00:00
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