Roan Kattouw [Thu, 23 Dec 2010 20:14:18 +0000 (20:14 +0000)]
Proper exception handling in ResourceLoader. Catch exceptions and output them in comments. Instead of just surrounding everything in a big try { } block, catch module-level exceptions where possible to allow error-free modules loaded in the same request to still be output normally. Modules that don't get output because of an exception are marked as missing in the client-side loader so other modules depending on them won't get loaded either.
Sam Reed [Thu, 23 Dec 2010 20:00:02 +0000 (20:00 +0000)]
Another variable type hint, and some function documentation
Sam Reed [Thu, 23 Dec 2010 19:53:28 +0000 (19:53 +0000)]
More minor bits of documentation
Object type hint on mPrinter
Krinkle [Thu, 23 Dec 2010 19:42:26 +0000 (19:42 +0000)]
removing cursor style from JS, adding to CSS file instead
Krinkle [Thu, 23 Dec 2010 19:27:43 +0000 (19:27 +0000)]
fixing comment in jquery.makeCollapsible.js (in mw 'jquery' is written in lowercase in filenames
Krinkle [Thu, 23 Dec 2010 19:26:30 +0000 (19:26 +0000)]
whitespace according to mw conventions + using mw.msg instead of english hardcoding
Krinkle [Thu, 23 Dec 2010 19:25:16 +0000 (19:25 +0000)]
adding jQuery.makeCollapsible plugin
Sam Reed [Thu, 23 Dec 2010 19:24:38 +0000 (19:24 +0000)]
Add some method documentation
Roan Kattouw [Thu, 23 Dec 2010 18:38:24 +0000 (18:38 +0000)]
Fix r78897: remove dependency on makeCollapsible as well
X! [Thu, 23 Dec 2010 18:28:25 +0000 (18:28 +0000)]
Followup to r78903: Add proper SVN info
X! [Thu, 23 Dec 2010 18:22:10 +0000 (18:22 +0000)]
Followup to r78903: Forgot to svn add
X! [Thu, 23 Dec 2010 18:20:13 +0000 (18:20 +0000)]
Per discussion on mailing list, modifying some uses of opendir()/readdir()/closedir() to use new sfFinder class.
Krinkle [Thu, 23 Dec 2010 17:50:52 +0000 (17:50 +0000)]
didn't mean to commit this
Krinkle [Thu, 23 Dec 2010 16:36:37 +0000 (16:36 +0000)]
using .append() instead of innerHTML+=. The latter replaces the html and causes all bound event handlers to be list
Happy-melon [Thu, 23 Dec 2010 16:21:06 +0000 (16:21 +0000)]
Follow-up r78865 CR
Happy-melon [Thu, 23 Dec 2010 15:03:24 +0000 (15:03 +0000)]
Follow-up r78865 CR; restore arrow helper functions, fixing fatal on TWN.
Roan Kattouw [Thu, 23 Dec 2010 14:16:20 +0000 (14:16 +0000)]
Fix JS errors thrown by SimpleSearch: add dependency from jquery.autoEllipsis to jquery.highlightText, and fix the latter for the RegExp.escape() -> $.escapeRE() rename
Roan Kattouw [Thu, 23 Dec 2010 14:07:25 +0000 (14:07 +0000)]
Followup r78539: don't renew a cookie that expires at the end of the session anyway, no point in doing that.
nadeesha [Thu, 23 Dec 2010 11:58:32 +0000 (11:58 +0000)]
Added MediaWikiOnAlreadyInstalledTestCase.php to the test suite
nadeesha [Thu, 23 Dec 2010 10:36:22 +0000 (10:36 +0000)]
Updated the test cases as per the code review comments
nadeesha [Thu, 23 Dec 2010 10:30:25 +0000 (10:30 +0000)]
Added MediaWikiInstallationMessage.php and MediaWikiInstallationVariables.php as per the code review comment
Siebrand Mazeland [Thu, 23 Dec 2010 09:21:11 +0000 (09:21 +0000)]
Tweak 'nocookiesfornew'
Happy-melon [Thu, 23 Dec 2010 00:06:58 +0000 (00:06 +0000)]
(bug 17456) implement CollapsibleTables in core javascript. Using ResourceLoader/jQuery, this is now able to replace not only the ubiquitous collapsible tables in articles ([[mw:Manual:Collapsible tables]]), but also most of the other places we collapse things as well, like the enhanced Watchlist/RecentChanges feed.
Sam Reed [Wed, 22 Dec 2010 21:52:37 +0000 (21:52 +0000)]
Better release notes for r78841
Sam Reed [Wed, 22 Dec 2010 21:50:00 +0000 (21:50 +0000)]
Fixup date and uppercase parameter from r78824
Platonides [Wed, 22 Dec 2010 21:44:05 +0000 (21:44 +0000)]
Reimplement $cp1252Table avoiding th e5.3-only heredoc.
Sam Reed [Wed, 22 Dec 2010 21:40:33 +0000 (21:40 +0000)]
* (bug 24287) Wrap/similar on api help output
Roan Kattouw [Wed, 22 Dec 2010 21:32:57 +0000 (21:32 +0000)]
Fix r78828: comma to dot
Sam Reed [Wed, 22 Dec 2010 21:30:43 +0000 (21:30 +0000)]
Per bug 14869 being fixed, bug 8130 and bug 14020 have been fixed. Marking them as resolved in the RELEASE-NOTES too
Sam Reed [Wed, 22 Dec 2010 21:12:50 +0000 (21:12 +0000)]
Remove spurious 0 from r78831
Sam Reed [Wed, 22 Dec 2010 21:08:40 +0000 (21:08 +0000)]
Add a really basic example for completeness
Sam Reed [Wed, 22 Dec 2010 21:03:51 +0000 (21:03 +0000)]
Fix trailing whitespace in ApiQueryQueryPage.
Add comment noting that the pages are case sensitive
Raimond Spekking [Wed, 22 Dec 2010 20:55:03 +0000 (20:55 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-12-21 20:31:00 UTC)
Sam Reed [Wed, 22 Dec 2010 20:52:06 +0000 (20:52 +0000)]
Delete all the "API for MediaWiki 1.8+" comments
Add since to ApiQueryQueryPage
Roan Kattouw [Wed, 22 Dec 2010 20:49:29 +0000 (20:49 +0000)]
Fix misspelling of my name, that I seem to have put in myself. Kinda embarrassing
Roan Kattouw [Wed, 22 Dec 2010 20:48:10 +0000 (20:48 +0000)]
Replace my old e-mail address with my new one in API comments. A bit outdated (dropped the old one in September '08)
Sam Reed [Wed, 22 Dec 2010 20:43:22 +0000 (20:43 +0000)]
Minor followup to r78822, locally cache the cachedTimestamp so we don't have to do duplicate db calls for the same information
Sam Reed [Wed, 22 Dec 2010 20:38:19 +0000 (20:38 +0000)]
RELEASE-NOTES for r78824, r78786
Roan Kattouw [Wed, 22 Dec 2010 20:35:37 +0000 (20:35 +0000)]
(bug 14869) Add API module for accessing QueryPage-based special pages. Took 2.5 years and a flight to England to get this done, but there you go :)
Sam Reed [Wed, 22 Dec 2010 20:33:35 +0000 (20:33 +0000)]
Comment out unreachable code line
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.