Chad Horohoe [Tue, 28 Dec 2010 22:20:01 +0000 (22:20 +0000)]
Fix hardcoded debugging from r79093
Raimond Spekking [Tue, 28 Dec 2010 20:55:53 +0000 (20:55 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-12-27 20:57:00 UTC)
Jack Phoenix [Tue, 28 Dec 2010 20:46:12 +0000 (20:46 +0000)]
add Roan to Special:Version credits
X! [Tue, 28 Dec 2010 19:27:34 +0000 (19:27 +0000)]
Add test to supplement Bug 26425 (followup to r79013)
X! [Tue, 28 Dec 2010 19:12:27 +0000 (19:12 +0000)]
Add BlockTest unit test
X! [Tue, 28 Dec 2010 18:47:09 +0000 (18:47 +0000)]
NewDBTest does not need the function anymore.
Fixed bug that caused a catchable fatal error (fix from r79117)
Platonides [Tue, 28 Dec 2010 18:44:32 +0000 (18:44 +0000)]
Fix bug 14404. The articles are now always saved with the default options.
Most importantily, articles with {{int:X}} will now have consistent table
links no matter the language of the last saving user.
Existing articles with broken tables will be updated on a null edit (a purge is not enough).
Test added in r79121.
Platonides [Tue, 28 Dec 2010 18:43:49 +0000 (18:43 +0000)]
Add failing test for bug 14404.
X! [Tue, 28 Dec 2010 18:30:03 +0000 (18:30 +0000)]
Fix r79109: listTables() does not work without a prefix, and verified that SQLite works now
Chad Horohoe [Tue, 28 Dec 2010 18:23:43 +0000 (18:23 +0000)]
Add @covers annotations to IP tests
Chad Horohoe [Tue, 28 Dec 2010 18:17:16 +0000 (18:17 +0000)]
* verbose and color default output from phpunit
* Make a bunch of tests subclass MediaWikiTestCase
* Parser tests and ResourceLoaderTest can't subclass it yet due to various issues
Platonides [Tue, 28 Dec 2010 18:16:46 +0000 (18:16 +0000)]
Play safe and clear the article object internals, too (eg. mTouched).
Platonides [Tue, 28 Dec 2010 18:15:48 +0000 (18:15 +0000)]
This precondition is no longer needed after r78393
X! [Tue, 28 Dec 2010 18:10:18 +0000 (18:10 +0000)]
Followup to r79109: Use a clean DB by default for each test
Chad Horohoe [Tue, 28 Dec 2010 17:51:07 +0000 (17:51 +0000)]
Followup r79112: missed one rename
Chad Horohoe [Tue, 28 Dec 2010 17:45:33 +0000 (17:45 +0000)]
Rename MediaWikiTestSetup to MediaWikiTestCase: this is going to be the base class for all unit tests from now on
X! [Tue, 28 Dec 2010 17:15:50 +0000 (17:15 +0000)]
It's here! It's finally here! The skies are falling, pigs have sprouted wings, and it's pretty cold in hell!
-Add a working PHPUnit test that instantiates a new DB, adds set data, and deleted when done.
-Add listTables() to the Database classes (only MySql and SQLite use it, and only MySQL is tested)
Platonides [Tue, 28 Dec 2010 15:54:51 +0000 (15:54 +0000)]
Set $wgAdaptiveMessageCache for parserTests until NikeRabbit fixes r78179
X! [Tue, 28 Dec 2010 15:13:42 +0000 (15:13 +0000)]
assertType() is deprecated, switching usages tp assertInternalType() and assertInstanceOf()
Niklas Laxström [Tue, 28 Dec 2010 09:54:25 +0000 (09:54 +0000)]
Follow up r23393, also remove the getter method
Shinjiman [Tue, 28 Dec 2010 09:30:48 +0000 (09:30 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
X! [Tue, 28 Dec 2010 04:08:25 +0000 (04:08 +0000)]
Wrong URL in README
Chad Horohoe [Tue, 28 Dec 2010 01:22:38 +0000 (01:22 +0000)]
Nitpick r79094: fix var names
Chad Horohoe [Tue, 28 Dec 2010 01:19:16 +0000 (01:19 +0000)]
Followup r79093: Move DROP TABLE code to Database classes and properly rename back to original table prefix in destroyDatabase()
Chad Horohoe [Tue, 28 Dec 2010 00:44:16 +0000 (00:44 +0000)]
Refactor table cloning code into its own class so it can maybe be used by things other than the parser tests
Krinkle [Mon, 27 Dec 2010 23:23:55 +0000 (23:23 +0000)]
* Follow-up r79087. Applying to other skins that have similar article styling in relation to headings and thumbs.
* Follow-up r79086. Fixing margin (I shouldn't have added the numbers, caused the margins to be a litle bigger then they were, now they're the same as before the border>margin change)
Chad Horohoe [Mon, 27 Dec 2010 23:02:13 +0000 (23:02 +0000)]
Comment out "subscribe to mediawiki-l" feature until we actually implement it. I'd really like to see this working, but we need to build some sort of API for Mailman.
Raimond Spekking [Mon, 27 Dec 2010 21:17:44 +0000 (21:17 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-12-27 20:57:00 UTC)
Krinkle [Mon, 27 Dec 2010 20:53:11 +0000 (20:53 +0000)]
Adding overflow:hidden to heading elements in Vector.
This has been tested in Vector in a large number of browsers to not have side effects and only making the underline no longer shine through transparent borders or margins of thumbs.
Also, due to float clearing abilities of overflow:hidden (it's all over the internet) this also causes the editsection link to no longer be stacked down (see en.wiki WP:BUNCH), see bug 26449.
Krinkle [Mon, 27 Dec 2010 20:45:07 +0000 (20:45 +0000)]
Room around thumbs should be margin, not a transparent border.
.tleft / .tright { border-width: 0.5em 0 0.8em 1.4em; }
becomes: "margin: 0.5em 0 0.8em 1.4em;"
adding ".thumb margin-bottom: 0.5em;" becomes: "margin: 0.5em 0 1.3em 1.4em;"
* Related to r79010
Happy-melon [Mon, 27 Dec 2010 20:02:10 +0000 (20:02 +0000)]
Follow-up r79084: synchronise keys.
Happy-melon [Mon, 27 Dec 2010 19:50:51 +0000 (19:50 +0000)]
Follow-up r79083: Fix notices on TW.
Happy-melon [Mon, 27 Dec 2010 19:07:28 +0000 (19:07 +0000)]
Refactoring in RecentChanges/Watchlist:
* Use new jQuery/RL collapsible implementation, remove legacy JS.
* Refactor ChangesList::flag() and ChangesList::recentChangesFlags(), the latter to now take an array rather than a growing list of out-of-order parameters.
* Resolve the FIXME requested in r44421 (just passed its second birthday :D) by replacing extract() calls with direct references.
Platonides [Mon, 27 Dec 2010 18:56:31 +0000 (18:56 +0000)]
If running against the grid, there's no need to start and stop the server in localhost.
Platonides [Mon, 27 Dec 2010 18:55:41 +0000 (18:55 +0000)]
Remove debugging var_dump, add , in message.
Platonides [Mon, 27 Dec 2010 18:53:29 +0000 (18:53 +0000)]
Get rid of a different configuration file syntax for PHP 5.2
Directly parse them in php.
Krinkle [Mon, 27 Dec 2010 17:37:19 +0000 (17:37 +0000)]
Treat premade toggle links as a custom instead of default case (ie. dont change the text) (Follow-up r78989 CR)
Platonides [Mon, 27 Dec 2010 17:17:45 +0000 (17:17 +0000)]
(Bug 26434) - Generated password from "Create account by email" does not work.
Another consequence of the $ts === 0 from r71751.
Fixed in a more verbose way. Behavior documented in tables.sql
Sam Reed [Mon, 27 Dec 2010 16:56:50 +0000 (16:56 +0000)]
*(bug 26404) Enable call graphs for doxygen-generated doc
Platonides [Mon, 27 Dec 2010 16:51:59 +0000 (16:51 +0000)]
Replace __METHOD__ with __FUNCTION__
Using a title like testParse instead of ExtraParserTest::testParse (thus without colons),
means that it doesn't need to be checked if it's an interwiki, and no interwiki db (either Cdb or normal db) is needed.
So these tests can be run as Databaseless.
Krinkle [Mon, 27 Dec 2010 16:43:50 +0000 (16:43 +0000)]
The toggle link may be in any of the cells of the first row. The default will stick to the last cell but when detecting premade links, it now scans the entire first row instead of just the last cell.
Sam Reed [Mon, 27 Dec 2010 16:29:44 +0000 (16:29 +0000)]
One would hope we have no .php3 files left laying around
Chad Horohoe [Mon, 27 Dec 2010 15:41:11 +0000 (15:41 +0000)]
Move setup_plpgsql() to PostgresInstaller and make it use status objects for when the rest of this is moved over too
Tobias [Mon, 27 Dec 2010 14:21:56 +0000 (14:21 +0000)]
Special:Permalink as alias for Special:PermanentLink (added in r79036)
Chad Horohoe [Mon, 27 Dec 2010 13:56:20 +0000 (13:56 +0000)]
* Followup r78450: just use selectField() instead of pg_fetch_result() with a raw doQuery()
* Remove useless isset() check, this will always be set with some default in DefaultSettings.php
Daniel Friesen [Mon, 27 Dec 2010 12:23:06 +0000 (12:23 +0000)]
Commit getPersonalTools to allow personal bar generation to be simplified.
nadeesha [Mon, 27 Dec 2010 10:49:25 +0000 (10:49 +0000)]
Adding README file for the Installer testing
nadeesha [Mon, 27 Dec 2010 10:43:18 +0000 (10:43 +0000)]
Updated the copyright section
nadeesha [Mon, 27 Dec 2010 10:34:17 +0000 (10:34 +0000)]
Remove 'str_replace('//','/',' from the require_once( str_replace('//','/',dirname(__FILE__).'/') .'MediaWikiInstallationCommonFunction.php');
nadeesha [Mon, 27 Dec 2010 07:34:57 +0000 (07:34 +0000)]
Adding MediaWiki installer test scripts and installer directory
nadeesha [Mon, 27 Dec 2010 07:22:08 +0000 (07:22 +0000)]
Deleting installer directory to have a fresh commit
Brion Vibber [Mon, 27 Dec 2010 03:21:43 +0000 (03:21 +0000)]
* bug 26437: fix for Sanitizer::decodeCharReferences converting invalid hex character references
Patch by Umherirrender: https://bugzilla.wikimedia.org/attachment.cgi?id=7931&action=edit
Also added a parser regression test case: "HTML Hex character encoding bogus encoding (bug 26437 regression check)"
Happy-melon [Mon, 27 Dec 2010 00:07:41 +0000 (00:07 +0000)]
Follow-up r79036: update comment.
Happy-melon [Mon, 27 Dec 2010 00:03:35 +0000 (00:03 +0000)]
(bug 268) add Special:PermanentLink/### as an internally-linkable redirect to index.php?oldid=###.
Also refactor SpecialPage::getRedirectQuery() to return an associative array to pass to wfArrayToCGI(), rather than bodging the query string together internally.
Platonides [Sun, 26 Dec 2010 22:55:32 +0000 (22:55 +0000)]
Revert r75588 and r77381. Block just the tainted pairs of username/passwords until a proper solution for weak passwords is added, hopefully for 1.18.
Platonides [Sun, 26 Dec 2010 22:24:55 +0000 (22:24 +0000)]
When running phpunit with globals backup, $skinsInitialised will be kept to true, but $wgValidSkinNames reset to an empty array. Workarounding.
Brion Vibber [Sun, 26 Dec 2010 22:01:26 +0000 (22:01 +0000)]
Thumbnail previews for PNG, JPEG, GIF, and SVG files on Special:Upload in browsers supporting HTML 5 FileAPI
Known good:
* Firefox 3.6+
* Chrome 7.something+
Krinkle [Sun, 26 Dec 2010 20:41:08 +0000 (20:41 +0000)]
adding hoverIntent plugin
Brion Vibber [Sun, 26 Dec 2010 20:39:21 +0000 (20:39 +0000)]
Throw an exception instead of low-level PHP fatal error if something invokes the Exif() class when exif functions aren't actually present. (Discovered with PagedTiffHandler enabled on my test machine.)
Raimond Spekking [Sun, 26 Dec 2010 20:38:54 +0000 (20:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-12-26 20:27:00 UTC)
Ryan Lane [Sun, 26 Dec 2010 19:45:01 +0000 (19:45 +0000)]
Adding maintenance script to purge stale flagged revs entries from memcached (for entries that have rev idsin the key). Should be made more generic.
Platonides [Sun, 26 Dec 2010 19:30:10 +0000 (19:30 +0000)]
Document parser, add test cases for the external entry points to it.
Platonides [Sun, 26 Dec 2010 19:23:11 +0000 (19:23 +0000)]
Remove ParserOptions clonations, already cloned in getParserOptions().
Ref r70783
Platonides [Sun, 26 Dec 2010 19:21:45 +0000 (19:21 +0000)]
Store the options used by the parsing in ParserOutput, per r70783 CR.
Daniel Friesen [Sun, 26 Dec 2010 14:15:27 +0000 (14:15 +0000)]
Changing the skin loader to load classes using the pattern "Skin{$skinName}" instead of `"Skin" . ucfirst($key)` as the current behavior has been causing bugs with extension based skins attempting to use the autoloader to load their skins.
Under current behavior for "MonoBook" the skin loader will load "SkinMonobook" instead of "SkinMonoBook". Because the skin system loads from skins/ when it can't find a skin and php's class system is case insensitive by a fluke MonoBook has been fine despite the skin loader trying to load SkinMonobook despite the class being named SkinMonoBook.
However our autoloader is case-sensitive, and as a result if you try to name your extension based skin class something like SkinStereoBook the skin will break with a cryptic error message because the skin loader attempts to load SkinStereobook, doesn't find it in the autoloader, then throws a php error when it tries to load skins/StereoBook.php and can't find the file.
We have also been using the $skinName to generate the name of the file to load from skins/ so this value is already expected to be safe for use in this way.
Daniel Friesen [Sun, 26 Dec 2010 13:45:13 +0000 (13:45 +0000)]
Back out getPersonalTools from r79014 which did not belong in that commit.
Daniel Friesen [Sun, 26 Dec 2010 13:41:23 +0000 (13:41 +0000)]
Add a config option to allow the login / create account link to be split into separate login and create account links. (Besides Google and Bing, Wikipedia/MediaWiki is the only big site I see that actually doesn't provide separate login and create account links).
This is partially made because there are skins where separate login and createaccount links are made, not giving them proper login and createaccount links in the personal_urls means partial reimplementation of personal_urls code in the skin (or worse, no support for features like $wgSecureLogin in these skins when they don't keep up with core).
Brian Wolff [Sun, 26 Dec 2010 04:38:41 +0000 (04:38 +0000)]
(Bug 26425) Due to r71751, wfTimestamp stopped accepting '' to mean get
current timestamp. This caused Block::__construct to put all sort of
messages in the debug log about invalid timestamp. So change Block to use
timestamp of 0 instead of '' if unspecified.
Platonides [Sat, 25 Dec 2010 23:23:38 +0000 (23:23 +0000)]
Make a loop to keep them really deleted.
Entries in hewiki are hard to kill.
Krinkle [Sat, 25 Dec 2010 23:10:14 +0000 (23:10 +0000)]
Skins override shared.css, merged fix for bug 26423 in r79010 to skins instead
Krinkle [Sat, 25 Dec 2010 22:57:38 +0000 (22:57 +0000)]
Removing ugly whitespace around thumbnails on a non-white background.
* (bug 26423) Margin around thumbnails is forced to be white
Platonides [Sat, 25 Dec 2010 22:00:55 +0000 (22:00 +0000)]
Copy & paste mistake
Platonides [Sat, 25 Dec 2010 21:58:50 +0000 (21:58 +0000)]
Whitespace. Add $wgDBname to the debug message.
Platonides [Sat, 25 Dec 2010 21:38:13 +0000 (21:38 +0000)]
A debug message
Platonides [Sat, 25 Dec 2010 21:35:39 +0000 (21:35 +0000)]
Only the latest one will please us.
Platonides [Sat, 25 Dec 2010 21:28:27 +0000 (21:28 +0000)]
6:30 pm please
Platonides [Sat, 25 Dec 2010 21:26:58 +0000 (21:26 +0000)]
Seconds missing
Platonides [Sat, 25 Dec 2010 21:25:28 +0000 (21:25 +0000)]
Quick script to clean the entries in memcached for text saved today after the disk got full but before the master switch.
Raimond Spekking [Sat, 25 Dec 2010 20:55:55 +0000 (20:55 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-12-25 20:33:00 UTC)
Rotem Liss [Sat, 25 Dec 2010 16:00:02 +0000 (16:00 +0000)]
Localization update for he.
Niklas Laxström [Sat, 25 Dec 2010 12:33:17 +0000 (12:33 +0000)]
Same for the tooltip, don't call twice
Niklas Laxström [Sat, 25 Dec 2010 12:30:12 +0000 (12:30 +0000)]
Rm useless checks which breaks if descriptionmsg is an array
Niklas Laxström [Sat, 25 Dec 2010 12:24:18 +0000 (12:24 +0000)]
Don't load the same accesskey message four times (in the worst case)
Niklas Laxström [Sat, 25 Dec 2010 10:27:14 +0000 (10:27 +0000)]
Trailing whitespace in messages is not supported
Krinkle [Sat, 25 Dec 2010 03:42:59 +0000 (03:42 +0000)]
Giving #mw-log-console position 'fixed' instead of 'absolute' (to have it stay on the bottom when scrolling down)
Krinkle [Sat, 25 Dec 2010 03:26:09 +0000 (03:26 +0000)]
Added remote binding for custom collapsibles and minor improvements
* Fixed JSLint errors
* Added support for custom collapsibles that can have togglelink(s) anywhere in the document
* To prevent people from making secret toggle links (vandalism?) for things like '#content', prefix 'mw-customcollapsible-' is required
* Merged a few comments (bit less verbose)
* Adding extra check when fixing li-value. Value-attribute of an ordered list items defaults to '-1' instead of '' in Mozilla Firefox 3.
Krinkle [Sat, 25 Dec 2010 00:29:41 +0000 (00:29 +0000)]
Reverting r78889 and r78865. Breaks changeslist on translatewiki (unpatrolled-flag exclamation mark popping up on page histories and and diff-views where they shouldn't instead of an 'm' for minor)
- = ChangesList::flag( 'minor' );
- The jquery effects plugin and collapsible implementation, also in those commits, are redundant now.
- If/when skins.commons is needed again, we can simply add that part back in.
- (r78891 is not reverted because the file it altered was deleted while r78865 was -merged)
Krinkle [Fri, 24 Dec 2010 16:08:42 +0000 (16:08 +0000)]
Fixing typo from r78944
Krinkle [Fri, 24 Dec 2010 15:52:44 +0000 (15:52 +0000)]
Adding message for collapsible link in core for localization (Follow-up r78935, r78915)
Krinkle [Fri, 24 Dec 2010 15:27:11 +0000 (15:27 +0000)]
Adding fallback for collapsible messages
Krinkle [Fri, 24 Dec 2010 15:24:28 +0000 (15:24 +0000)]
Forgot to namespace the click handler. Unbinding all click handlers is indeed risky (Follow-up r78935 CR)
Krinkle [Fri, 24 Dec 2010 15:07:01 +0000 (15:07 +0000)]
Adding default styling for redirects
* Fixes bug 26266
* HTML class .allpagesredirect (redirects on [[Special:AllPages]]), .redirect-in-category (redirects in category listings)
Krinkle [Fri, 24 Dec 2010 14:34:27 +0000 (14:34 +0000)]
Removing debug call. Follow-up r78935 CR
Krinkle [Fri, 24 Dec 2010 13:44:24 +0000 (13:44 +0000)]
Make sure the TOC is there when toggleToc is called. Although the function calling it checks it too, it could be called by a third party, or the TOC could've dissapeared :O (Follow-up r78941)
Krinkle [Fri, 24 Dec 2010 13:41:57 +0000 (13:41 +0000)]
jslint warnings fixed in mw.util
Platonides [Fri, 24 Dec 2010 13:29:28 +0000 (13:29 +0000)]
We use lowercse in 'bug' here.
Platonides [Fri, 24 Dec 2010 13:28:12 +0000 (13:28 +0000)]
(Bug 26412) Search results headers no longer show a bogus edit link.
Platonides [Fri, 24 Dec 2010 12:08:47 +0000 (12:08 +0000)]
Add a couple of comments from my WC
Brian Wolff [Fri, 24 Dec 2010 10:24:16 +0000 (10:24 +0000)]
follow up to r78952 add parser tests relating to internal links with % encoding and + signs in them.
Brian Wolff [Fri, 24 Dec 2010 09:53:08 +0000 (09:53 +0000)]
(Bug 26410) In an internal link, a plus sign is treated as a space if the link
has a % sign in it, but interperted as a + if no % sign is present.
This changes how the parser interperts links slightly. However:
*I can't imagine anyone is relying on this behaviour
*Things should be consistent. a + sign shouldn't magically change meaning
if there is a % sign somewhere else in the link.
*Pages are allowed to contain % signs in their title, and + signs,
you should be able to link to such pages just by typing there name without
resorting to %2B.
*If you have a page named foo%+ having [[{{PAGENAME}}]] link to a different
page seems inherently wrong.
*The previous behaviour seemed accidental.