Commit graph

629 commits

Author SHA1 Message Date
Happy-melon d593e03b14 New infrastructure for actions, as discussed on wikitech-l. Fairly huge commit.
* Actions come in two flavours: the show-a-form-then-do-something-with-the-result (delete, protect, edit, etc) and the just-do-something (watch, rollback, patrol, etc).  Create abstract base classes Action and FormlessAction to support these two cases.  HTMLForm is an integral part of the form-based structure.
* Look mum, no globals!  :D  Fully context-based.
* Implement watch/unwatch, credits and delete actions in the new system as proof-of-concept.  This also gives the delete frontend a much-needed overhaul.
* Stub out the newly-deprecated functions from Article.php.  This already reduces its linecount by about 15%, and there are plenty more actions still to do.
* Centralising actions like this is going to render a lot of hooks type-incompatible.  There's simply nowhere you can put the ArticleConfirmDelete hook, for instance, where it can be passed an OutputPage as the second parameter.  On the other hand, we can implement new hooks like ActionModifyFormFields and ActionBeforeFormDisplay, which can do much prettier stuff to the forms, like adding extra fields the 'right' way.  Update LiquidThreads to use these new hooks where appropriate.
2011-04-13 23:04:07 +00:00
Raimond Spekking a54ff3a9a2 Localisation updates for core and extension messages from translatewiki.net (2011-04-11 18:35:00 UTC) 2011-04-11 19:18:59 +00:00
Raimond Spekking daa58a36ba Localisation updates for core and extension messages from translatewiki.net (2011-04-05 20:23:00 UTC) 2011-04-05 20:55:44 +00:00
Raimond Spekking 272443c781 Localisation updates for core and extension messages from translatewiki.net (2011-04-04 12:51:00 UTC) 2011-04-04 13:21:39 +00:00
Raimond Spekking 5c56a4d6e1 Localisation updates for core and extension messages from translatewiki.net (2011-03-29 20:00:00 UTC) 2011-03-29 20:19:59 +00:00
Chad Horohoe 34a416305d Partial revert r84686: Yaron wants to maintain b/c in these still 2011-03-24 17:38:40 +00:00
Chad Horohoe 1c968e8ae3 Remove wfLoadExtensionMessages() in all trunk extensions (do not backport)
* This function has been a no-op since 1.16
* As of 1.18, this throws warnings to all callers
* It will be removed *entirely* in 1.20 according to documentation
* I skipped Semantic* on purpose

This means: extensions IN TRUNK now require AT LEAST MediaWiki 1.16 or above.
2011-03-24 17:04:02 +00:00
Brian Wolff f1705b55d5 (follow-up 79778; continuation r84660) Change truncate to count the ellipsis in length. Update extensions that seem to be
expecting the other behaviour. Didn't update extensions that seem to be expecting the behaviour i changed it to.
2011-03-24 03:43:27 +00:00
Raimond Spekking 29dc660fe7 Localisation updates for core and extension messages from translatewiki.net (2011-03-21 19:57:00 UTC) 2011-03-21 20:38:19 +00:00
Yaron Koren f132c3880c Fix for loading a module in MW 1.17 - follow-up to r84165 and r83789 2011-03-17 16:06:58 +00:00
Yaron Koren 23795e4f82 Added backwards compatibility for MW < 1.17 2011-03-17 13:29:01 +00:00
Yaron Koren eb96084ffe New version: 0.9.1 2011-03-16 16:18:20 +00:00
Yaron Koren d0004464b7 Added escaping so that a search string containing a space can be used on page names 2011-03-15 20:30:32 +00:00
Raimond Spekking 4a363816ff Localisation updates for core and extension messages from translatewiki.net (2011-03-14 21:06:00 UTC) 2011-03-14 21:28:18 +00:00
Happy-melon 3ebdc5cc73 Spin out all the CSS used on special pages into their own mediawiki.special module. This comprises about a third of /skins/common/shared.css, so it's definitely worthwhile not loading it for the 99.9% of pageviews which aren't special pages. 2011-03-12 22:42:58 +00:00
Yaron Koren f9ced025f4 Made some improvements to SQL, including use of addQuotes() - follow-up to r82212 2011-03-11 18:39:52 +00:00
Raimond Spekking 7664236b26 Localisation updates for core and extension messages from translatewiki.net (2011-03-10 20:05:00 UTC) 2011-03-10 21:02:36 +00:00
Raimond Spekking 04cb209bcc Localisation updates for core and extension messages from translatewiki.net (2011-03-09 21:26:00 UTC) 2011-03-09 22:15:15 +00:00
Raimond Spekking 5ac6be3e6b Localisation updates for core and extension messages from translatewiki.net (2011-03-07 19:38:00 UTC) 2011-03-07 20:21:17 +00:00
Raimond Spekking 06e6f05d55 Localisation updates for core and extension messages from translatewiki.net (2011-03-04 19:51:00 UTC) 2011-03-04 20:06:34 +00:00
Siebrand Mazeland 1d825ba4d8 Localisation updates from http://translatewiki.net.
* rebuild of all extension i18n files supported by Translate (~440).
2011-03-01 01:10:00 +00:00
Raimond Spekking 0526c322ac Localisation updates for core and extension messages from translatewiki.net (2011-02-26 20:52:00 UTC) 2011-02-26 21:12:01 +00:00
Raimond Spekking f00e70ec71 Localisation updates for core and extension messages from translatewiki.net (2011-02-23 20:13:00 UTC) 2011-02-23 20:29:27 +00:00
Raimond Spekking 10391b6552 Localisation updates for core and extension messages from translatewiki.net (2011-02-22 21:13:00 UTC) 2011-02-22 21:52:34 +00:00
Yaron Koren 74ed1dc630 Changed code to use new linkToTitle() method, for backward compatibility for Linker::makeKnownLinkObj() method 2011-02-22 19:04:28 +00:00
Raimond Spekking c4ef0afd71 Localisation updates for core and extension messages from translatewiki.net (2011-02-21 20:13:00 UTC) 2011-02-21 20:36:18 +00:00
Raimond Spekking 170ed2eed3 Localisation updates for core and extension messages from translatewiki.net (2011-02-19 20:30:00 UTC) 2011-02-19 20:56:36 +00:00
Raimond Spekking bad6562d38 Localisation updates for core and extension messages from translatewiki.net (2011-02-18 20:25:00 UTC) 2011-02-18 21:02:18 +00:00
Raimond Spekking 5657c8723e Localisation updates for core and extension messages from translatewiki.net (2011-02-17 20:45:00 UTC) 2011-02-17 21:07:10 +00:00
Raimond Spekking c1b81cd152 Localisation updates for core and extension messages from translatewiki.net (2011-02-16 20:35:00 UTC) 2011-02-16 21:00:04 +00:00
Yaron Koren 1b8f9a4007 Follow-up to r82212 - simplified and improved namespace check within SQL 2011-02-16 19:04:56 +00:00
Yaron Koren 1b6ce19925 Follow-up to r82205 - replaced "regular expressions and wildcards" with just "regular expressions", to avoid confusion 2011-02-16 18:47:26 +00:00
Raimond Spekking cd8601818d Partly revert r82210: Remove spurios character (BOM?) 2011-02-16 14:40:34 +00:00
Raimond Spekking 90195e65bf Partly revert r82212: Remove spurios character 2011-02-16 13:22:10 +00:00
Yaron Koren 05a5ad50fb Changed default user group from 'bureaucrat' to 'sysop' - makes more sense 2011-02-16 03:24:35 +00:00
Yaron Koren 4e8584cf79 New version: 0.9 2011-02-16 03:12:06 +00:00
Yaron Koren c070fe3ff0 Added handling for regular expressions 2011-02-16 03:11:20 +00:00
Yaron Koren 74d7e56d84 Added handling for regular expressions 2011-02-16 03:04:27 +00:00
Yaron Koren 1270111558 Added two messages to handle new regex feature (!) 2011-02-16 00:20:33 +00:00
Raimond Spekking 6fbf9dd4fa Localisation updates for core and extension messages from translatewiki.net (2011-02-07 20:45:00 UTC) 2011-02-07 21:06:29 +00:00
Sam Reed 9adb0a4ac7 Part of bug 27041, removing all calls to escapeLike in extensions 2011-01-30 22:34:23 +00:00
Raimond Spekking ae32f0261e Localisation updates for core and extension messages from translatewiki.net (2011-01-24 20:59:00 UTC) 2011-01-24 21:31:38 +00:00
Siebrand Mazeland 59a5d54add Localisation updates for extensions from translatewiki.net. 2011-01-22 20:08:34 +00:00
Raimond Spekking 5634ded157 Localisation updates for core and extension messages from translatewiki.net (2011-01-17 18:14:00 UTC) 2011-01-17 19:48:22 +00:00
Raimond Spekking adb89e780e Localisation updates for core and extension messages from translatewiki.net (2010-12-21 20:31:00 UTC) 2010-12-22 20:55:03 +00:00
Raimond Spekking b3a7d3ca75 Follow-up r78410: Call wfLoadExtensionMessages() conditionally only to avoid spamming of log 2010-12-16 08:49:06 +00:00
Yaron Koren 156f37cff8 Re-added wfLoadExtensionMessages(), for backward compatibility, removed by siebrand in r78123 2010-12-14 23:28:05 +00:00
Raimond Spekking 5027d83899 Localisation updates for core and extension messages from translatewiki.net (2010-12-14 20:54:00 UTC) 2010-12-14 21:19:18 +00:00
Siebrand Mazeland a9e05a8a24 Follow-up r78122: Remove wfLoadExtensionMessages from selected extensions (those run on translatewiki.net).
* special handling for Maps and Validator: check MediaWiki version and if 1.15 of lower, call wfLoadExtensionMessages.
2010-12-09 11:57:55 +00:00
Sam Reed 23b2b6be35 Reverting r76192 due to 1.15 back compat... 2010-12-02 17:31:05 +00:00