Raimond Spekking [Mon, 28 Jul 2008 14:22:15 +0000 (14:22 +0000)]
Localisation updates German
Tim Starling [Mon, 28 Jul 2008 10:16:12 +0000 (10:16 +0000)]
No negative caching in the revision cache -- doesn't work anyway since memcached converts false to '', and so suppresses the error message on the second hit.
Rotem Liss [Mon, 28 Jul 2008 09:48:13 +0000 (09:48 +0000)]
Localization update for he.
Siebrand Mazeland [Mon, 28 Jul 2008 09:10:36 +0000 (09:10 +0000)]
Localisation updates for core from Betawiki
Siebrand Mazeland [Mon, 28 Jul 2008 09:00:25 +0000 (09:00 +0000)]
Localisation updates for core messages from Betawiki (2008-07-28 10:44 CEST)
Brion Vibber [Mon, 28 Jul 2008 05:44:18 +0000 (05:44 +0000)]
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.
Brion Vibber [Mon, 28 Jul 2008 05:31:12 +0000 (05:31 +0000)]
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.
Brion Vibber [Mon, 28 Jul 2008 05:25:25 +0000 (05:25 +0000)]
Revert r38016, r38018 (change of $wgTranslateNumerals defaults).
There was no explanation given of why it should be forced to off by default for every language...
Brion Vibber [Mon, 28 Jul 2008 05:09:08 +0000 (05:09 +0000)]
Start on some cleanup of how CSS stylesheets are loaded. Initially addressing only the SkinTemplate-based skins; would like to rip out some near-dupe code in the other skin types, with a little more refactoring...
* A skin can make calls to $this->addScript to much more cleanly list which style sheets it wants to load, for which media variants and which IE conditional versions. This replaces the 'cssfiles' array hack and giant pile of ugly conditionals in MonoBook's template.
* 'printable=yes' and 'handheld=yes' URL options are handled transparently -- 'screen' stylesheets are hidden, while those with no media specifier are left.
MediaWiki:Common.css is now listed without media -- so infoboxes are still formatted -- while the skin-specific eg MediaWiki:Monobook.css are listed for screen, as they're specific to the on-screen skin.
Note it should be a matter of one line of code to add a MediaWiki:Print.css and have it correctly handled now.
* All sheets are now loaded via <link rel="stylesheet"> instead of a mix of those and @import decls.
IIRC we had used @import originally to hide styles from Netscape 4, which tends to utterly break on MonoBook, but these days that's pretty much a non-issue.
@import also breaks some browsers' ability to save stylesheets with a file to disk, which sucks.
Confirmed that Firefox 3 can now save pages with their styles.
* 'screen, projection' media specifier has been changed to just 'screen' -- projection is something totally different.
* Added experimental options for specifying handheld stylesheets:
/**
* Optionally, we can specify a stylesheet to use for media="handheld".
* This is recognized by some, but not all, handheld/mobile/PDA browsers.
* If left empty, compliant handheld browsers won't pick up the skin
* stylesheet, which is specified for 'screen' media.
*
* Can be a complete URL, base-relative path, or $wgStylePath-relative path.
* Try 'chick/main.css' to apply the Chick styles to the MonoBook HTML.
*
* Will also be switched in when 'handheld=yes' is added to the URL, like
* the 'printable=yes' mode for print media.
*/
$wgHandheldStyle = false;
/**
* If set, 'screen' and 'handheld' media specifiers for stylesheets are
* transformed such that they apply to the iPhone/iPod Touch Mobile Safari,
* which doesn't recognize 'handheld' but does support media queries on its
* screen size.
*
* Consider only using this if you have a *really good* handheld stylesheet,
* as iPhone users won't have any way to disable it and use the "grown-up"
* styles instead.
*/
$wgHandheldForIPhone = false;
Shinjiman [Mon, 28 Jul 2008 01:27:21 +0000 (01:27 +0000)]
Update the Chinese conversion tables
Last minute changes for the release branch 1.13
Brion Vibber [Mon, 28 Jul 2008 01:26:44 +0000 (01:26 +0000)]
Set a damn default for apiThumbCacheExpiry so we don't spew notices all the time when it's not set.
Aaron Schulz [Sun, 27 Jul 2008 21:50:35 +0000 (21:50 +0000)]
Set baserevid (bug 14918)
Tim Starling [Sun, 27 Jul 2008 21:49:58 +0000 (21:49 +0000)]
Magic word __STATICREDIRECT__ to suppress the redirect fixer. For periodically-archived pages like [[WP:GO]].
Brion Vibber [Sun, 27 Jul 2008 21:31:11 +0000 (21:31 +0000)]
* API search now falls back to fulltext search by default when using Lucene
or other engine which doesn't support a separate title search function.
This means you can use API search on Wikipedia without explicitly adding
&srwhat=text to the query.
Aaron Schulz [Sun, 27 Jul 2008 19:24:35 +0000 (19:24 +0000)]
set baseRevId (bug 14947)
Aryeh Gregor [Sun, 27 Jul 2008 18:59:46 +0000 (18:59 +0000)]
* Add count() method to TitleArray and UserArray.
* Change PageHistory::fetchRevisions() to return a result object instead of an array of rows.
* Stylistic issues: use foreach( $res as $row ) instead of while( $row = $dbr->fetchObject( $res ) ), change a couple of variable names, use __METHOD__.
There should be no functional changes.
Alexandre Emsenhuber [Sun, 27 Jul 2008 18:43:55 +0000 (18:43 +0000)]
Avoid using $this, it is a reserved word
Aryeh Gregor [Sun, 27 Jul 2008 18:14:59 +0000 (18:14 +0000)]
Indeed, this is a ResultWrapper object, so we can iterate over it: no ugly while loops. In fact, we don't even have to bother creating the array. A few quick tests show >100 KB peak memory usage drop even on a quite small RC, a couple dozen items.
Alexandre Emsenhuber [Sun, 27 Jul 2008 18:09:22 +0000 (18:09 +0000)]
Fix comment (Title::newFromTitle -> Title::newFromName) and mark Title::nameOf() as public static instead of doing this with in comments
Jon Harald Søby [Sun, 27 Jul 2008 17:31:18 +0000 (17:31 +0000)]
Added {{PLURAL:}} to lag-warn-normal and lag-warn-high
Siebrand Mazeland [Sun, 27 Jul 2008 11:08:39 +0000 (11:08 +0000)]
Localisation updates for core messages from Betawiki (2008-07-27 12:58 CEST)
Shinjiman [Sun, 27 Jul 2008 10:25:41 +0000 (10:25 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Siebrand Mazeland [Sun, 27 Jul 2008 10:08:28 +0000 (10:08 +0000)]
Fix typo in message text.
Shinjiman [Sun, 27 Jul 2008 10:05:33 +0000 (10:05 +0000)]
Update the Chinese conversion tables
Last minute changes for the release branch 1.13
Shinjiman [Sun, 27 Jul 2008 04:04:26 +0000 (04:04 +0000)]
Update the Chinese conversion tables
Chad Horohoe [Sat, 26 Jul 2008 23:42:29 +0000 (23:42 +0000)]
Ignore sysops+bcrats and accounts touched in the last week. Patch by Louperivois.
Jack Phoenix [Sat, 26 Jul 2008 21:38:51 +0000 (21:38 +0000)]
SpecialMovepageBeforeMove hook from Wikia codebase - allows extensions, such as spamRegex, to interfere with page moving
Alexandre Emsenhuber [Sat, 26 Jul 2008 20:41:52 +0000 (20:41 +0000)]
* factorize common code
* allow to pass directly a Language object
Alexandre Emsenhuber [Sat, 26 Jul 2008 15:51:49 +0000 (15:51 +0000)]
Tweak for my last commit: this variable is not used anymore
Alexandre Emsenhuber [Sat, 26 Jul 2008 08:42:29 +0000 (08:42 +0000)]
$res is a ResultWrapper object
Chad Horohoe [Sat, 26 Jul 2008 02:33:54 +0000 (02:33 +0000)]
One less step and potentially one less query if the number is already set.
Chad Horohoe [Fri, 25 Jul 2008 23:12:27 +0000 (23:12 +0000)]
Remove a bit of useless $wgCapitalLinks logic, all these code paths lead through Title::secureAndSpit() which handles initial-character-capitalization.
*In SearchEngine's case, it gets caught every time further up the page (it never even reaches the upper/lower casing of only first character part)
*PrefixSearch eventually sends it through ApiQueryBase::titleToKey()
*AjaxFunctions immediately sends it to Title::newFromText()
Alexandre Emsenhuber [Fri, 25 Jul 2008 20:43:15 +0000 (20:43 +0000)]
rm dupe
Aryeh Gregor [Fri, 25 Jul 2008 20:16:24 +0000 (20:16 +0000)]
Move more initialization to member variable defaults. (The Title constructor now actually does nothing, but I left it for the comment.)
Aryeh Gregor [Fri, 25 Jul 2008 19:36:13 +0000 (19:36 +0000)]
Change a few hardcoded select() parameters (one of which was actually incorrect) to __METHOD__.
Aryeh Gregor [Fri, 25 Jul 2008 19:19:11 +0000 (19:19 +0000)]
Convert subpage move to use TitleArray, just for demonstration. It's only a few lines' difference in this case, with no actual effect on anything. Finding places where *arrays* of Titles are used would be more fruitful.
Aryeh Gregor [Fri, 25 Jul 2008 19:14:30 +0000 (19:14 +0000)]
Copy-paste documentation for copy-pasted hook, too.
Aryeh Gregor [Fri, 25 Jul 2008 19:03:53 +0000 (19:03 +0000)]
Add TitleArray, a straight rip-off of UserArray. I couldn't figure out how to make them both inherit from ObjectArray or anything, so code duplication works for now.
Jack Phoenix [Fri, 25 Jul 2008 18:11:43 +0000 (18:11 +0000)]
new hook, ConfirmEmailComplete
Alexandre Emsenhuber [Fri, 25 Jul 2008 18:06:29 +0000 (18:06 +0000)]
Per r38036: also fix FormOptions
Rotem Liss [Fri, 25 Jul 2008 17:00:06 +0000 (17:00 +0000)]
Credits:
* I'm already in the list, 4 lines above.
* Alphabetic order.
* Removing trailing whitespace.
Bryan Tong Minh [Fri, 25 Jul 2008 16:52:13 +0000 (16:52 +0000)]
* alnokta = Mohamed Magdy
* Add Rotem Liss per r38033
Alexandre Emsenhuber [Fri, 25 Jul 2008 16:46:43 +0000 (16:46 +0000)]
(bug 14659) Passing the default limit param to Special:Recentchanges no more falls back to the user option
Krzysztof Krzyzaniak [Fri, 25 Jul 2008 15:39:12 +0000 (15:39 +0000)]
avoid php FATAL error when Parser_OldPP is used
Aryeh Gregor [Fri, 25 Jul 2008 14:30:54 +0000 (14:30 +0000)]
Fix spelling of my name.
Rotem Liss [Fri, 25 Jul 2008 13:59:24 +0000 (13:59 +0000)]
API change: Registration time of users registered before the DB field was created is now shown as empty instead of the current time.
Shinjiman [Fri, 25 Jul 2008 13:39:43 +0000 (13:39 +0000)]
Update the Chinese conversion tables
Chad Horohoe [Fri, 25 Jul 2008 13:39:00 +0000 (13:39 +0000)]
Add some docs on how far back wfLoadExtensionMessages() goes
Siebrand Mazeland [Fri, 25 Jul 2008 08:50:35 +0000 (08:50 +0000)]
Localisation updates for core messages from Betawiki (2008-07-25 10:43 CEST)
Robert Leverington [Fri, 25 Jul 2008 07:52:34 +0000 (07:52 +0000)]
* The line regarding otehr contributors should read "CREDITS" rather than "AUTHORS".
Chad Horohoe [Fri, 25 Jul 2008 05:57:07 +0000 (05:57 +0000)]
Add CREDITS file, listed all those who've committed something to trunk since the 1.13 branch. Need patch submitters (any thus far?) and translators.
Aryeh Gregor [Fri, 25 Jul 2008 01:27:51 +0000 (01:27 +0000)]
Move some member variable initialization to the declarations and out of constructors. This is better style and less error-prone: OutputPage::$mIsPrintable was first being set to true and then to false in the constructor, and $mAllowUserJs and $mLinkColours are missing defaults entirely. Also, Tim said there's some lazy-loading or shared memory or something if it's done this way, so it might be a performance boost.
Mohamed Magdy [Thu, 24 Jul 2008 23:31:06 +0000 (23:31 +0000)]
Add note about $wgTranslateNumerals
Greg Sabino Mullane [Thu, 24 Jul 2008 22:28:29 +0000 (22:28 +0000)]
Add partial index for common recentchanges query.
Mohamed Magdy [Thu, 24 Jul 2008 21:54:06 +0000 (21:54 +0000)]
Set $wgTranslateNumerals to false by default.
Aryeh Gregor [Thu, 24 Jul 2008 18:10:35 +0000 (18:10 +0000)]
Break at 80 columns in some comments. Also improve documentation for $wgArticleRobotPolicies.
Aryeh Gregor [Thu, 24 Jul 2008 18:02:20 +0000 (18:02 +0000)]
Instead of last commit, use $wgExemptFromUserRobotsControl to control __INDEX__/__NOINDEX__. This defaults to null, which means $wgContentNamespaces. Pages whose namespaces are in the array will be unaffected by __INDEX__/__NOINDEX__. This will prevent serious vandalism, so the feature is again enabled by default (with content namespaces exempted).
As was pointed out, it's probably better anyway that the vandal noindex a page and have nothing turn up in searches if the search engine arrives at that exact time, than to have the vandal replace the page with "ARTICLE SUBJECT IS A POOPY-HEAD" and have that turn up in searches if the search engine arrives at that exact time. :) At any rate, this should solve the issue.
Aryeh Gregor [Thu, 24 Jul 2008 17:40:16 +0000 (17:40 +0000)]
Implement $wgAllowUserRobotsControl to control whether the new __INDEX__ and __NOINDEX__ magic words work. False by default until this is thought out a little better: there are major possibilities for vandalism here.
Chad Horohoe [Thu, 24 Jul 2008 17:14:43 +0000 (17:14 +0000)]
Allow local caching of thumbs from remote APIs. Still highly hackish and should only be used if you're on crack.
Tim Starling [Thu, 24 Jul 2008 16:25:19 +0000 (16:25 +0000)]
* Fix bug 14904: fragments lost when redirects are fixed.
* Add $fragment parameter to Title::makeTitle() and friends
Tim Starling [Thu, 24 Jul 2008 12:51:26 +0000 (12:51 +0000)]
Syntax error
Tim Starling [Thu, 24 Jul 2008 12:45:23 +0000 (12:45 +0000)]
Workaround for APC bug. Not fully isolated, but AutoLoader::$localClasses is implicated by the C stack frame at the time of the crash.
Chad Horohoe [Thu, 24 Jul 2008 12:37:07 +0000 (12:37 +0000)]
bug 14907 - DatabasePostgres::fieldType() wasn't defined, fatal errors abound.
Rotem Liss [Thu, 24 Jul 2008 09:22:08 +0000 (09:22 +0000)]
Localization update for he.
Siebrand Mazeland [Thu, 24 Jul 2008 08:55:11 +0000 (08:55 +0000)]
Localisation updates for core messages from Betawiki (2008-07-24 10:48 CEST)
Shinjiman [Thu, 24 Jul 2008 00:26:04 +0000 (00:26 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Huji [Wed, 23 Jul 2008 20:03:40 +0000 (20:03 +0000)]
Localisation updates: Adding/updating Persian translations
Aryeh Gregor [Wed, 23 Jul 2008 19:49:46 +0000 (19:49 +0000)]
(bug 8068) New __INDEX__ and __NOINDEX__ magic words allow control of search engine indexing on a per-article basis. Remarks:
* Currently __INDEX__ will override __NOINDEX__ regardless of their relative positions, due to the way things are written. Instead, the last one on the page should win. This should be pretty easy to fix.
* __INDEX__ and __NOINDEX__ override $wgArticleRobotPolicies. This is almost certainly incorrect, but it's not totally obvious how to fix it, because of the way the code is structured. Probably not a big deal, but should probably be fixed at some point.
* Anyone can add and remove the magic words, and there's no config option to disable them. It's not obvious whether this is okay or not. It would be a one-line change to OutputPage.php to have a config option to ignore the magic words, maybe per-namespace or who knows what.
Aryeh Gregor [Wed, 23 Jul 2008 19:27:13 +0000 (19:27 +0000)]
Revert last commit for a moment, committed lots of stuff I didn't mean to.
Aryeh Gregor [Wed, 23 Jul 2008 19:25:48 +0000 (19:25 +0000)]
Follow-up to r37968: forgot to commit the change setRobotpolicy -> setRobotPolicy in extensions.
Aryeh Gregor [Wed, 23 Jul 2008 19:05:43 +0000 (19:05 +0000)]
Refactor a bit preparatory to fixing bug 8068: rewrite the robot policy stuff in OutputPage to allow index and follow policy to be set separately. Also now validates input to setRobotPolicy(). And renamed setRobotpolicy to setRobotPolicy, too. If anyone was accessing $mRobotpolicy directly they're out of luck, though.
Aryeh Gregor [Wed, 23 Jul 2008 17:53:27 +0000 (17:53 +0000)]
Documentation: note that $wgNamespaceRobotPolicies can't change the default for NS_SPECIAL.
Tim Starling [Wed, 23 Jul 2008 16:17:56 +0000 (16:17 +0000)]
More updates for 1.14
Alexandre Emsenhuber [Wed, 23 Jul 2008 16:13:07 +0000 (16:13 +0000)]
$wgVersion too
Tim Starling [Wed, 23 Jul 2008 16:11:57 +0000 (16:11 +0000)]
HISTORY/RELEASE-NOTES to 1.14
Tim Starling [Wed, 23 Jul 2008 14:51:39 +0000 (14:51 +0000)]
Some documentation for SFH_OBJECT_ARGS
Rotem Liss [Wed, 23 Jul 2008 10:32:00 +0000 (10:32 +0000)]
Localization fix.
Rotem Liss [Wed, 23 Jul 2008 09:52:39 +0000 (09:52 +0000)]
Localization update for he.
Tim Starling [Wed, 23 Jul 2008 08:48:20 +0000 (08:48 +0000)]
Missing file for r37928
Siebrand Mazeland [Wed, 23 Jul 2008 08:45:41 +0000 (08:45 +0000)]
Localisation updates for core messages from Betawiki (2008-07-23 10:30 CEST)
Siebrand Mazeland [Wed, 23 Jul 2008 08:39:55 +0000 (08:39 +0000)]
Fix for r37928.
So if you *do* decide to add messages during a freeze, then at least take the time to do it right.
Siebrand Mazeland [Wed, 23 Jul 2008 08:25:23 +0000 (08:25 +0000)]
Just removing a few justs.
Brion Vibber [Wed, 23 Jul 2008 07:59:38 +0000 (07:59 +0000)]
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.
Chad Horohoe [Wed, 23 Jul 2008 01:43:57 +0000 (01:43 +0000)]
Typofix
Tim Starling [Tue, 22 Jul 2008 22:44:34 +0000 (22:44 +0000)]
* (bug 4578) Automatically fix redirects broken by a page move. Works via the job queue, controllable by a checkbox on Special:Movepage.
* Renamed some excessively short variables in SpecialMovepage.php
* Allow $wgReservedUsernames to be localised using "msg:..." syntax
Ilmari Karonen [Tue, 22 Jul 2008 22:37:55 +0000 (22:37 +0000)]
Make Special:Recentchangeslinked display changes to transcluded pages (templatelinks table) and embedded images (imagelinks table). This should help a bit against the recent spate of template vandalism on enwiki.
Also make the "Show changes to pages linked" button work for categories.
Remaining issues / things to do:
- Test performance of the UNION query on a larger dataset than my test wiki.
- Add some checkboxes to allow filtering the results like on Special:Whatlinkshere.
- Try to think of some way to make the behavior for categories less klugy.
Tim Starling [Tue, 22 Jul 2008 21:47:53 +0000 (21:47 +0000)]
Use a history file with readline, so that readline history is carried over from one invocation to another
Ryan Schmidt [Tue, 22 Jul 2008 21:28:11 +0000 (21:28 +0000)]
* (bug 14883) Create hook AlternateSkinPreferences to alternate skin section in user preferences
Mohamed Magdy [Tue, 22 Jul 2008 17:28:21 +0000 (17:28 +0000)]
Update skin names
Alexandre Emsenhuber [Tue, 22 Jul 2008 16:40:55 +0000 (16:40 +0000)]
update
Roan Kattouw [Tue, 22 Jul 2008 13:26:15 +0000 (13:26 +0000)]
API: Change descriptions for some limit parameters to actually refer to the correct type of result
Siebrand Mazeland [Tue, 22 Jul 2008 08:25:44 +0000 (08:25 +0000)]
Localisation updates for core messages from Betawiki (2008-07-22 10:14 CEST)
Brion Vibber [Mon, 21 Jul 2008 22:37:33 +0000 (22:37 +0000)]
Revert r37872 for now -- "(bug 2971) Standardize format of links to hist/diff in Special:Contributions."
This appears to have changed "(hist) (diff)" to "(diff; hist)". I'm a bit leery of callign that "standardization" as it changes it from looking like regular Recent Chagnes to looking like enhanced Recent Changes.
Might be good to do a look around at other things, which use for example commas or pipes in parens as well, and figure out which is best to stick with.
Chad Horohoe [Mon, 21 Jul 2008 21:51:51 +0000 (21:51 +0000)]
Allow $wgCookiePrefix to be set by the user. Default is false which keeps current behavior in Setup. Fixes bug 14843.
Roan Kattouw [Mon, 21 Jul 2008 21:37:11 +0000 (21:37 +0000)]
Cleanup from r37839: just put ipb_auto in the relevant arrays. We have those arrays so we don't have to add if($fld_a || $fld_b) for every crazy flag combination in existence.
Alexandre Emsenhuber [Mon, 21 Jul 2008 20:22:17 +0000 (20:22 +0000)]
Per r37889: $wgStyleVersion++;
Jon Harald Søby [Mon, 21 Jul 2008 20:17:29 +0000 (20:17 +0000)]
* Making <hr> 1px in Modern, like in Monobook
Alexandre Emsenhuber [Mon, 21 Jul 2008 17:13:55 +0000 (17:13 +0000)]
We already have the skin in $this->data, no need to take it from $wgUser
Greg Sabino Mullane [Mon, 21 Jul 2008 17:06:35 +0000 (17:06 +0000)]
Minor grammar fixes, etc.
Greg Sabino Mullane [Mon, 21 Jul 2008 16:58:06 +0000 (16:58 +0000)]
Clarify Postgres text indexing process.