Roan Kattouw [Wed, 22 Dec 2010 20:31:32 +0000 (20:31 +0000)]
Refactor the retrieval of the cache timestamp into getCachedTimestamp() so the future API module can use it
Roan Kattouw [Wed, 22 Dec 2010 19:57:31 +0000 (19:57 +0000)]
Remove nonsense comment about order being relevant
Sam Reed [Wed, 22 Dec 2010 18:25:40 +0000 (18:25 +0000)]
Spaces and braces
Roan Kattouw [Wed, 22 Dec 2010 18:08:52 +0000 (18:08 +0000)]
Followup r78786: make back compat mode actually work by moving up $dbr assignment
Roan Kattouw [Wed, 22 Dec 2010 17:29:31 +0000 (17:29 +0000)]
Followup r78786: var->protected
Roan Kattouw [Wed, 22 Dec 2010 17:20:50 +0000 (17:20 +0000)]
(bug 26395) Change name of Cornish language to Kernowek
Sam Reed [Wed, 22 Dec 2010 16:28:52 +0000 (16:28 +0000)]
Followup r78805, remove now unused function
Sam Reed [Wed, 22 Dec 2010 16:21:02 +0000 (16:21 +0000)]
Simple commit trimming some trailing whitespace
Sam Reed [Wed, 22 Dec 2010 16:20:16 +0000 (16:20 +0000)]
Show images that don't exist, as they are included in the count
Roan Kattouw [Wed, 22 Dec 2010 16:19:32 +0000 (16:19 +0000)]
Mark LinkSearch as uncacheable and fix its headers display. Followup r78786
Roan Kattouw [Wed, 22 Dec 2010 16:18:24 +0000 (16:18 +0000)]
Fix reported database error in updateSpecialPages.php for SpecialMIMEsearch, by returning 0 rather than false from QueryPage::recache() for uncacheable pages
Sam Reed [Wed, 22 Dec 2010 16:16:12 +0000 (16:16 +0000)]
Followup r78023, change usage of $style to $styles, not introduced in this revision, but was moved by it
Roan Kattouw [Wed, 22 Dec 2010 15:58:15 +0000 (15:58 +0000)]
Performance crusade in SpecialListredirects:
* Use the rd_* fields to build redirect objects directly rather than running additional queries to grab them
** If the rd_* fields are not available (i.e. when running from cache), use Article::getRedirectTarget() rather than grabbing the revision text
* Preload the existence status of the redirects and their targets in a LinkBatch so Linker::link() won't query them one at a time
Roan Kattouw [Wed, 22 Dec 2010 15:54:27 +0000 (15:54 +0000)]
Treat interwiki titles as known-bad in LinkCache, prevents useless queries for interwiki titles with possibly misleading results
Alexandre Emsenhuber [Wed, 22 Dec 2010 15:29:29 +0000 (15:29 +0000)]
We need to select the namespace, even hardcoded, this is causing: Notice: Undefined property: stdClass::$namespace in includes/QueryPage.php on line 307
Alexandre Emsenhuber [Wed, 22 Dec 2010 15:24:13 +0000 (15:24 +0000)]
No need to recreate a second object if we already have the good one ;)
Niklas Laxström [Wed, 22 Dec 2010 15:22:59 +0000 (15:22 +0000)]
Few @since annotations
Sam Reed [Wed, 22 Dec 2010 15:20:10 +0000 (15:20 +0000)]
Followup r78786, fix special wanted pages. Aliasing pages in left join doesn't work
Trim some trailing whitespace too
Alexandre Emsenhuber [Wed, 22 Dec 2010 15:06:08 +0000 (15:06 +0000)]
Follow-up r78786: for consistency, removed array() when there's only one item
Roan Kattouw [Wed, 22 Dec 2010 15:00:33 +0000 (15:00 +0000)]
Really do what r78790 claimed to do (fix E_STRICT in r78786)
Roan Kattouw [Wed, 22 Dec 2010 14:53:24 +0000 (14:53 +0000)]
Followup r7876: fix another E_STRICT: kill additional parameter in doQuery() override; I guess doQuery() must've had that third parameter before but doesn't have it anymore
Roan Kattouw [Wed, 22 Dec 2010 14:35:57 +0000 (14:35 +0000)]
Followup r78786: remove useless getTitle() override, was causing E_STRICT
Roan Kattouw [Wed, 22 Dec 2010 14:16:25 +0000 (14:16 +0000)]
Merge querypage-work2 branch from trunk. The most relevant changes are:
* QueryPage now uses array-based query building instead of raw SQL
* Converted all QueryPage-based special pages that were using old-style wfSpecialFoo functions to new-style SpecialPage subclasses; this is possible because QueryPage is changed to extend SpecialPage
* Backward compatibility for extensions is partly preserved: getSQL() is fallen back on for QueryPage subclasses that don't implement getQueryInfo(), but getOrder() will be ignored (implement getOrderFields() instead). This also means that dual compatibility (1.18 compat and b/c with pre-1.18) is trivial
Extension changes will be merged after this commit.
These changes make it easier to write an API module for QueryPages (bug 14869); this wasn't done in the branch but will be done in trunk soon.
Sam Reed [Wed, 22 Dec 2010 11:16:24 +0000 (11:16 +0000)]
Followup r78775, svn:eol-style native SET UP YOUR AUTOPROPS
nadeesha [Wed, 22 Dec 2010 10:13:12 +0000 (10:13 +0000)]
delete the additional variable
nadeesha [Wed, 22 Dec 2010 09:35:23 +0000 (09:35 +0000)]
Add MediaWiki 1.18 alpha installer test cases
Chad Horohoe [Wed, 22 Dec 2010 05:21:22 +0000 (05:21 +0000)]
Rewrite install steps again (cleanup r76390)
* No longer iterating and modifying the same array
* Allows multiple attachments to the same step
* Database -> DatabaseMysql
Krinkle [Wed, 22 Dec 2010 04:08:40 +0000 (04:08 +0000)]
small fixes
* Change assumptions about default/newest skin in CSS comments from Monobook to Vector
* Single-item array to string
Platonides [Wed, 22 Dec 2010 01:11:22 +0000 (01:11 +0000)]
Revert r78767. The problem was $wgDBerrorLog being false.
Platonides [Wed, 22 Dec 2010 00:57:40 +0000 (00:57 +0000)]
The filename is the first parameter!
Platonides [Wed, 22 Dec 2010 00:57:00 +0000 (00:57 +0000)]
One call left in r78764
Platonides [Wed, 22 Dec 2010 00:52:11 +0000 (00:52 +0000)]
These calls have been broken since the files birth in r16781.
The parameters are finish, start.
Sam Reed [Wed, 22 Dec 2010 00:40:59 +0000 (00:40 +0000)]
self to Maintenance
Sam Reed [Wed, 22 Dec 2010 00:25:16 +0000 (00:25 +0000)]
Properly qualify usage of class constants
Platonides [Wed, 22 Dec 2010 00:06:56 +0000 (00:06 +0000)]
We don't like final ?> in scripts
Platonides [Wed, 22 Dec 2010 00:06:14 +0000 (00:06 +0000)]
Four more spaces, per r78759 CR
Platonides [Wed, 22 Dec 2010 00:02:49 +0000 (00:02 +0000)]
Avoid create_function. Making explicit functions.
Not using self:: in the callbacks for PHP 5.2 compatibility.
$sourceFields = array_keys( array_filter( $fields, array( $this, 'notUpgradeNull' ) ) ); works flawlessly too, but might begin throwing warnings in the future.
Platonides [Tue, 21 Dec 2010 23:38:29 +0000 (23:38 +0000)]
Remove unused global
Raimond Spekking [Tue, 21 Dec 2010 21:18:43 +0000 (21:18 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-12-21 20:57:00 UTC)
Mark A. Hershberger [Tue, 21 Dec 2010 18:11:22 +0000 (18:11 +0000)]
Installer and doc fixups thanks to Zak Greant.
Roan Kattouw [Tue, 21 Dec 2010 17:48:42 +0000 (17:48 +0000)]
Merge r78700 to trunk
Alexandre Emsenhuber [Tue, 21 Dec 2010 17:41:05 +0000 (17:41 +0000)]
Follow-up r78695: correct class name
Roan Kattouw [Tue, 21 Dec 2010 17:21:25 +0000 (17:21 +0000)]
i before e except after c
Roan Kattouw [Tue, 21 Dec 2010 17:15:25 +0000 (17:15 +0000)]
Followup r78192: rather than silently ignoring calls to undefined SpecialPage methods, throw an exception
Roan Kattouw [Tue, 21 Dec 2010 16:09:32 +0000 (16:09 +0000)]
Migrate last call to escapeLike() in core to buildLike(). Admittedly the former makes a bit more sense in this particular context, but it's deprecated and throws warnings.
Philip Tzou [Tue, 21 Dec 2010 15:27:23 +0000 (15:27 +0000)]
Fix the bug when a math image was contained by an "<a>" tag, there will be extra markup -{R| and }-.
Since the -{ and }- has been escaped, the Raw (-{R|text}-) markup are no longer needed.
Tim Starling [Tue, 21 Dec 2010 13:59:19 +0000 (13:59 +0000)]
Long and ugly script to convert the recently-discovered August 2001 backup of Wikipedia to a MediaWiki XML file.
Brian Wolff [Tue, 21 Dec 2010 04:46:49 +0000 (04:46 +0000)]
(bug 26379) Make the importImages.php maintenance script give useful error
messages on failure. (as in pass along the errors generated from publish() )
Tim Starling [Tue, 21 Dec 2010 02:57:33 +0000 (02:57 +0000)]
Actually skip invalid titles in XML dumps, don't just say you're going to. Avoids fatal error.
Raimond Spekking [Mon, 20 Dec 2010 20:57:55 +0000 (20:57 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-12-20 20:25:00 UTC)
Happy-melon [Mon, 20 Dec 2010 19:03:00 +0000 (19:03 +0000)]
Revert rollback implementation of r78585, r78599. The way the API is set up, it's not possible to have some tokens on the new system and some on the old.
Platonides [Sun, 19 Dec 2010 22:40:46 +0000 (22:40 +0000)]
Aryeh was right in r71721.
Create two new messages. nocookiesforlogin defaults to nocookieslogin
Raimond Spekking [Sun, 19 Dec 2010 21:29:55 +0000 (21:29 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-12-19 20:48:00 UTC)
Daniel Friesen [Sun, 19 Dec 2010 20:31:31 +0000 (20:31 +0000)]
Followup r78589 c12219, changing "Antispam" to "Spam prevention".
Happy-melon [Sun, 19 Dec 2010 15:23:22 +0000 (15:23 +0000)]
Follow-up r78585: Make Token::PERSISTENT the default, so no need to specify it. That will be more usual, I expect.
Mark A. Hershberger [Sun, 19 Dec 2010 05:32:55 +0000 (05:32 +0000)]
Not sure how I missed --scriptpath option since it was right above the wikiroot option I added, but I did. (ok, so I *do* know how I missed it, but it was a dumb mistake).
Mark A. Hershberger [Sun, 19 Dec 2010 05:08:21 +0000 (05:08 +0000)]
update install-phpunit.sh so people who read [[Unit_Testing#Installing_PHPUnit|about installing it]] can actually use it.
Mark A. Hershberger [Sun, 19 Dec 2010 04:55:00 +0000 (04:55 +0000)]
* Add --wikiroot option to CLI installer so the user can give something besides /wiki
* Add --upgrade option to CLI installer so we can throw an error when LocalSettings.php is present and provide an upgrade route to the user.
* Fixup CLI's showStatusMessage so allow CLI to throw an error and quit
Mark A. Hershberger [Sun, 19 Dec 2010 04:31:15 +0000 (04:31 +0000)]
Misc whitespace changes, mostly EOL w/s and indention fixes so TAB = 4 spaces
Daniel Friesen [Sun, 19 Dec 2010 01:20:01 +0000 (01:20 +0000)]
Add a Antispam group to Special:Version... we have a lot of these kind of extensions and they just sit in other right now.
Happy-melon [Sat, 18 Dec 2010 23:09:19 +0000 (23:09 +0000)]
Lol, I don't think that's part of the standard GPL header... :-D (follow-up r78585).
Happy-melon [Sat, 18 Dec 2010 23:07:30 +0000 (23:07 +0000)]
Merge in Token class from my branch; would like some second opinions on the concept. This seeks to replace the much-abused $wgUser->editToken() token generator, 90% of the uses of which are not for editing but rather general actions.
Implemented for rollback mainly as a proof-of-concept; obvious further targets are patrol links and HTMLForm.
Alexandre Emsenhuber [Sat, 18 Dec 2010 22:02:35 +0000 (22:02 +0000)]
Fix for r78570: correct default value
Mark A. Hershberger [Sat, 18 Dec 2010 21:45:44 +0000 (21:45 +0000)]
* re r76385 Add parser tests for $wgExternalLinkTarget on images
Raimond Spekking [Sat, 18 Dec 2010 21:23:20 +0000 (21:23 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-12-18 20:49:00 UTC)
Happy-melon [Sat, 18 Dec 2010 19:08:22 +0000 (19:08 +0000)]
Nicer way of doing r78566, and also one which won't incur Tim's wrath... :D
Alexandre Emsenhuber [Sat, 18 Dec 2010 17:56:38 +0000 (17:56 +0000)]
Moved constant values from initialiseFromUser() to class definition
Happy-melon [Sat, 18 Dec 2010 16:25:14 +0000 (16:25 +0000)]
r52070 breaks the use of optgroups etc: array(...) is cast to 'Array'. Need to only cast integers to strings.
Bryan Tong Minh [Sat, 18 Dec 2010 15:00:11 +0000 (15:00 +0000)]
Follow-up r75476: Windows set command treats everything until the && as part of the environment variable, resulting in a trailing whitespace which breaks stuff.
Niklas Laxström [Sat, 18 Dec 2010 14:34:43 +0000 (14:34 +0000)]
New plural rules
Niklas Laxström [Sat, 18 Dec 2010 14:34:29 +0000 (14:34 +0000)]
Typo
Tobias [Sat, 18 Dec 2010 13:57:09 +0000 (13:57 +0000)]
Fixing r65339: makeTitleSafe instead of newFromText
Raimond Spekking [Fri, 17 Dec 2010 20:27:54 +0000 (20:27 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-12-17 20:07:00 UTC)
Trevor Parscal [Fri, 17 Dec 2010 19:18:26 +0000 (19:18 +0000)]
Added anonymous function to mediaWiki.user
Raimond Spekking [Fri, 17 Dec 2010 19:17:56 +0000 (19:17 +0000)]
Fix autonym for 'pfl' per https://bugzilla.wikimedia.org/show_bug.cgi?id=25871#c7
Trevor Parscal [Fri, 17 Dec 2010 18:32:49 +0000 (18:32 +0000)]
Split the functionality of mediaWiki.user.sessionId into id and sessionId - the first of which is as persistent as possible, and the latter of which will change every time the browser is closed.
Happy-melon [Fri, 17 Dec 2010 16:04:01 +0000 (16:04 +0000)]
Rm unused javascript added in r47637 (follow up to r47569) and not reverted with the rest of it in r48780.
Chad Horohoe [Fri, 17 Dec 2010 15:49:51 +0000 (15:49 +0000)]
More old installer cruft
Chad Horohoe [Fri, 17 Dec 2010 15:43:16 +0000 (15:43 +0000)]
Same as r78533, but 5 lines down
Chad Horohoe [Fri, 17 Dec 2010 15:40:08 +0000 (15:40 +0000)]
Installer can handle exceptions now, also suppress possible permission errors with fopen()
Chad Horohoe [Fri, 17 Dec 2010 15:31:01 +0000 (15:31 +0000)]
* Handle output for DatabaseUpdater in the class itself, no more wfOut() usage in core :)
* Mark wfOut() deprecated
* CheckUser, OpenID and TitleKey still use wfOut :(
Chad Horohoe [Fri, 17 Dec 2010 15:17:13 +0000 (15:17 +0000)]
* Get rid of wfOut() usage in UserDupes
* $fname -> __METHOD__
* Get rid of php4 =&
Aaron Schulz [Fri, 17 Dec 2010 05:14:50 +0000 (05:14 +0000)]
Fixed doc
Raimond Spekking [Thu, 16 Dec 2010 22:11:46 +0000 (22:11 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-12-16 21:37:00 UTC)
Alexandre Emsenhuber [Thu, 16 Dec 2010 20:11:53 +0000 (20:11 +0000)]
Per ^demon, follow-up r78260: introduced MediaWiki::getAction() to get the action that will be executed
Trevor Parscal [Thu, 16 Dec 2010 19:31:48 +0000 (19:31 +0000)]
Moved CSS flipping to occur inside a module - this resolves a bug which occurs when flipping happens AFTER CSSMin::remap embeds a data URI of an un-flipped image.
Alexandre Emsenhuber [Thu, 16 Dec 2010 19:15:12 +0000 (19:15 +0000)]
Part of bug 26280: added license headers to PHP files in maintenance
Trevor Parscal [Thu, 16 Dec 2010 19:03:51 +0000 (19:03 +0000)]
Fixed RTL errors for search suggestions
Trevor Parscal [Thu, 16 Dec 2010 19:02:43 +0000 (19:02 +0000)]
Fixed RTL errors for SimpleSearch
Happy-melon [Thu, 16 Dec 2010 18:30:15 +0000 (18:30 +0000)]
Follow-up r77762 per CR, and an unrelated one-character whitespace fix which doesn't deserve its own revision id... :D
Happy-melon [Thu, 16 Dec 2010 18:06:08 +0000 (18:06 +0000)]
Follow-up r78452, r78497: having got my copy of phpunit working, fix test better.
Happy-melon [Thu, 16 Dec 2010 17:34:13 +0000 (17:34 +0000)]
Follow-up r78452: if you're going to try and declare an HTMLFormField without 80% of its parameters, it's probably not surprising that it doesn't like it... :-D
Platonides [Thu, 16 Dec 2010 15:09:50 +0000 (15:09 +0000)]
This path changed when moving the tests folder.
Chad Horohoe [Thu, 16 Dec 2010 15:01:39 +0000 (15:01 +0000)]
Remove comment about possibly removing the extra debugging info. Only the site admin should have access to the installer/updater anyway, so we're not really disclosing anything here.
Chad Horohoe [Thu, 16 Dec 2010 13:49:48 +0000 (13:49 +0000)]
Fix a few more paths from the tests move
Alexandre Emsenhuber [Thu, 16 Dec 2010 13:34:32 +0000 (13:34 +0000)]
No need to call wfDoUpdates(), already done by Article::doEdit()
Sam Reed [Thu, 16 Dec 2010 11:20:39 +0000 (11:20 +0000)]
Removing trailing whitespace
Mark A. Hershberger [Thu, 16 Dec 2010 01:32:28 +0000 (01:32 +0000)]
Repair phpunit.php
Trevor Parscal [Thu, 16 Dec 2010 01:19:15 +0000 (01:19 +0000)]
Set cursor to default for tooltips to avoid text cursor appearing and sticking when moving the mouse of a tooltip that's either configure with a delayed exit or fade-out.
Priyanka Dhanda [Wed, 15 Dec 2010 23:09:46 +0000 (23:09 +0000)]
Fixed typo