Raimond Spekking [Fri, 15 Oct 2010 19:18:12 +0000 (19:18 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-15 19:02:00 UTC)
Sam Reed [Fri, 15 Oct 2010 17:13:38 +0000 (17:13 +0000)]
* (bug 24792) API help caching doesn't vary on $wgUser->isAnon(), causes staleness
Greg Sabino Mullane [Fri, 15 Oct 2010 15:39:48 +0000 (15:39 +0000)]
cl_sortkey now back down to varbinary(230). Glad PG doesn't have this issue.
Max Semenik [Fri, 15 Oct 2010 14:11:59 +0000 (14:11 +0000)]
Fixed stupid copy+paste error from r74109
Platonides [Thu, 14 Oct 2010 22:13:43 +0000 (22:13 +0000)]
Follow up r74725. Also add $lang parameter to EditSectionLink.
Document the changes in hooks.txt
Aryeh Gregor [Thu, 14 Oct 2010 21:47:02 +0000 (21:47 +0000)]
cl_sortkey should be 230 bytes long, not 255
Bug 25503, reported by Dmitriy. When switching it to binary, I figured
that since it would always be one byte per character now, there would be
room to make it the full 255 bytes. In fact, if cl_to is utf8, the
(cl_to, cl_type, cl_sortkey, cl_from) index will be 255*3 + 1 + 255 + 4
= 1025 bytes, longer than the max of 1000. Shortening cl_sortkey to 230
bytes fixes this (fix tested by Dmitriy).
I didn't add an updater because if you're already running the current
schema without problems, you don't need this change.
Sam Reed [Thu, 14 Oct 2010 20:53:04 +0000 (20:53 +0000)]
Big attack on unused variables...
Sam Reed [Thu, 14 Oct 2010 20:34:01 +0000 (20:34 +0000)]
Another followup to r71426, $ni to $fieldRecord
Sam Reed [Thu, 14 Oct 2010 20:31:34 +0000 (20:31 +0000)]
Followup r71426, not $nc it's $fieldRecord
Raimond Spekking [Thu, 14 Oct 2010 19:36:21 +0000 (19:36 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-14 19:25:00 UTC)
Max Semenik [Thu, 14 Oct 2010 18:27:27 +0000 (18:27 +0000)]
Fixes for r74787:
* Don't call the check from every tests, there's setup() for that
* Check for FTS3 presence for SQLite, version is only partially relevant here as full-text search was added to default build options in 3.5.3, but it was accessible even before that. And even on 3.6 people can choose not to build with FTS.
Chad Horohoe [Thu, 14 Oct 2010 18:26:15 +0000 (18:26 +0000)]
spaces -> tabs
Antoine Musso [Thu, 14 Oct 2010 18:01:09 +0000 (18:01 +0000)]
* sqlite 3.3 fails, raising version to 3.6 just like parserTests.php
* skip tests that need DB support
Maybe someone could implements this using the magic __call method.
Priyanka Dhanda [Thu, 14 Oct 2010 17:56:52 +0000 (17:56 +0000)]
Cleanup of SimpleSeleniumTestCase. Removed unnecessary include.
Priyanka Dhanda [Thu, 14 Oct 2010 17:06:07 +0000 (17:06 +0000)]
Added missing file for r74780
Priyanka Dhanda [Thu, 14 Oct 2010 16:38:40 +0000 (16:38 +0000)]
* WebStart.php and SeleniumWebSettings.php allow include files and global config variables to be set based on the testsuite being run. See discussion in mediawiki.org/wiki/SeleniumFramework#Test_Wiki_configuration
* Let test suites run without logging in.
Niklas Laxström [Thu, 14 Oct 2010 15:59:20 +0000 (15:59 +0000)]
* (Bug 25451) Language::time() and ::date() misfunction when given timestamps in wrong format
Convert given times to correct format like ::timeandate() already does.
Based on patch by Thorsten Glaser <tg@debian.org>.
Niklas Laxström [Thu, 14 Oct 2010 09:14:45 +0000 (09:14 +0000)]
Add sgs code for Samogitian and deprecate bat-smg.
See also bug 25522.
Markus Glaser [Thu, 14 Oct 2010 00:42:38 +0000 (00:42 +0000)]
added support for junit log file output, which is neede by phpUnderControl
Markus Glaser [Thu, 14 Oct 2010 00:06:24 +0000 (00:06 +0000)]
* start / stop selenium server on Linux
* credits to Dan Nessett
Markus Glaser [Wed, 13 Oct 2010 23:57:28 +0000 (23:57 +0000)]
added credits to Priyanka Dhanda and Daniel Kinzler
Markus Glaser [Wed, 13 Oct 2010 23:52:42 +0000 (23:52 +0000)]
* handle PHP 5.2 ini files
* sample ini file for PHP 5.2
* credits to dan nessett
Trevor Parscal [Wed, 13 Oct 2010 23:52:37 +0000 (23:52 +0000)]
White space changes
Sam Reed [Wed, 13 Oct 2010 23:44:41 +0000 (23:44 +0000)]
Fixup tabs/whitespace
Sam Reed [Wed, 13 Oct 2010 23:43:21 +0000 (23:43 +0000)]
Fixup r74646
Remove unreachable return false;
Fix $tohis to $this
Sam Reed [Wed, 13 Oct 2010 23:28:34 +0000 (23:28 +0000)]
ResourceLoaderModule::concatStyles returns an Array, hence getPrimaryStyles does
Sam Reed [Wed, 13 Oct 2010 23:11:40 +0000 (23:11 +0000)]
Assignment in loop conditions suck
while ( $row = $dbw->fetchObject( $res ) ) { to foreach ( $res as $row ) in includes
Add some braces
Jack Phoenix [Wed, 13 Oct 2010 22:43:37 +0000 (22:43 +0000)]
follow-up to r74742: fix typos
Sam Reed [Wed, 13 Oct 2010 22:35:27 +0000 (22:35 +0000)]
Assignment in loop conditions suck
while ( $row = $dbw->fetchObject( $res ) ) { to foreach ( $res as $row ) in config
Sam Reed [Wed, 13 Oct 2010 22:34:25 +0000 (22:34 +0000)]
Assignment in loop conditions suck
while ( $row = $dbw->fetchObject( $res ) ) { to foreach ( $res as $row ) in maintenance stuffs (more to come)
Trevor Parscal [Wed, 13 Oct 2010 21:58:04 +0000 (21:58 +0000)]
Fixes bug in wikibits that causes addPortletLink to fail when adding tabs to the vector skin.
Raimond Spekking [Wed, 13 Oct 2010 19:36:44 +0000 (19:36 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-13 19:22:00 UTC)
Sam Reed [Wed, 13 Oct 2010 19:01:21 +0000 (19:01 +0000)]
Fixup "} elseif ( $cond[0] = '!' ) {" from r35983
NB, why are some revisions marked ok by no one? :S
Jack D. Pond [Wed, 13 Oct 2010 18:45:43 +0000 (18:45 +0000)]
Added $lang parameter to DoEditSectionLink hook. Allows extensions that add or modify links to use wfMsgExt to build those links consistent with parent function doEditSectionLink.
Neil Kandalgaonkar [Wed, 13 Oct 2010 00:27:03 +0000 (00:27 +0000)]
removing test file
Neil Kandalgaonkar [Wed, 13 Oct 2010 00:26:36 +0000 (00:26 +0000)]
testing if I can commit
Platonides [Tue, 12 Oct 2010 23:20:12 +0000 (23:20 +0000)]
Follow up r70940. This call should use the hook $result.
Sam Reed [Tue, 12 Oct 2010 22:48:22 +0000 (22:48 +0000)]
Remove unused array index, add a couple of braces
Trevor Parscal [Tue, 12 Oct 2010 21:28:17 +0000 (21:28 +0000)]
Finished what r67300 started, by using #ba0000 as the broken "red" link color.
Trevor Parscal [Tue, 12 Oct 2010 21:19:51 +0000 (21:19 +0000)]
Improves on r72776 by adding documentation about the limitations of ResourceLoaderWikiModule and making use of the MWNamespace::getCanonicalName method rather than depending on $wgCanonicalNamespaceNames.
Raimond Spekking [Tue, 12 Oct 2010 19:49:45 +0000 (19:49 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-12 19:36:00 UTC)
Derk-Jan Hartman [Tue, 12 Oct 2010 19:15:40 +0000 (19:15 +0000)]
* Test for the presence of addEventListener on the element on which we will actually use it.
Just in case someone messes with the normal environment.
Antoine Musso [Tue, 12 Oct 2010 18:20:48 +0000 (18:20 +0000)]
A note about symbolic link and dirname() / include() ...
Max Semenik [Tue, 12 Oct 2010 18:16:53 +0000 (18:16 +0000)]
Piece I was going to commit in r74681
Trevor Parscal [Tue, 12 Oct 2010 18:15:53 +0000 (18:15 +0000)]
Improves on r69445 by removing unneeded conditional. Also fixes a comment typo.
Max Semenik [Tue, 12 Oct 2010 18:14:36 +0000 (18:14 +0000)]
Follow-up r74628: convert two remaining calls of patchPath()
Trevor Parscal [Tue, 12 Oct 2010 17:52:32 +0000 (17:52 +0000)]
Simplifies r73680 by letting FormatJson::encode do it's magic with handling null and string values correctly.
Mark A. Hershberger [Tue, 12 Oct 2010 17:40:52 +0000 (17:40 +0000)]
Enumerate private member to fix build problem on CC
Mark A. Hershberger [Mon, 11 Oct 2010 22:50:06 +0000 (22:50 +0000)]
NOTE THAT THIS COMMIT REVEALS FAILING PARSER TESTS WHEN THEY ARE RUN IN PHPUnit. THE PHPUnit HARNESS NEEDS TO BE FIXED IN THIS CASE. Running parser tests by the traditional “php parserTests.php” verified to work without failures.
Committing this to get the parser tests running under PHPUnit on the whole. I expect to find fixes for the PHPUnit harness shortly.
* Construct ParserOptions with a user in ExtraParserTest and set up wgLang if it gets set to null — which *was* happening PHPUnit. Note that this probably shows a bug that I wasn't able to track down.
* Adjust phpunit tests so that they execute and report Parser test failures properly. Attempt to make parser test titles the test titles PHPUnit sees.
* Add E_STRICT reporting to PHPUnit testing.
* Provide PHPUnitParserTest as an exension of ParserTest to handle necessary PHPUnit calls for running parser tests under PHPUnit.
* Use dirname() instead of relative paths (i.e. “..”) where SearchEngineTest.php looks for bootstrap.php.
* Sprinkle teardownGlobals() in exit points for teardownDatabase()
* Make ParserTest::chomp() static.
Raimond Spekking [Mon, 11 Oct 2010 19:10:39 +0000 (19:10 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-11 19:00:00 UTC)
Max Semenik [Mon, 11 Oct 2010 15:29:48 +0000 (15:29 +0000)]
Turned Database::patchPath() into a member function, less globals to care about
Derk-Jan Hartman [Mon, 11 Oct 2010 15:20:57 +0000 (15:20 +0000)]
Remove $wgRemoteUploads. It was not well supported and superseded by $wgUploadNavigationUrl.
Follow up to r66566
Roan Kattouw [Mon, 11 Oct 2010 14:10:23 +0000 (14:10 +0000)]
When reading an old-style user_options blob, use the default value for any preferences not set in the blob. This'll hopefully fix bug 25416 ($options['editfont'] not set even though editfont is a legit pref)
Roan Kattouw [Mon, 11 Oct 2010 08:32:48 +0000 (08:32 +0000)]
(bug 25474) Fix wrong parameters in updateModule() call. r74525 tried to fix this, but missed the point. Patch by Borislav Manolov
Raimond Spekking [Sun, 10 Oct 2010 19:23:48 +0000 (19:23 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-10 19:07:00 UTC)
Alexandre Emsenhuber [Sun, 10 Oct 2010 18:18:08 +0000 (18:18 +0000)]
Removed error suppression operators
Platonides [Sun, 10 Oct 2010 14:45:00 +0000 (14:45 +0000)]
Space
Platonides [Sun, 10 Oct 2010 14:39:16 +0000 (14:39 +0000)]
Follow up r74135 removing the globals, too.
htmlescape the global.
Alexandre Emsenhuber [Sun, 10 Oct 2010 12:53:37 +0000 (12:53 +0000)]
Added description to language classes
Max Semenik [Sun, 10 Oct 2010 12:35:36 +0000 (12:35 +0000)]
Localisation tweak
Alexandre Emsenhuber [Sun, 10 Oct 2010 12:20:53 +0000 (12:20 +0000)]
Use wfGetLB()->getServerCount() to get the server count, not $wgDBservers
Alexandre Emsenhuber [Sun, 10 Oct 2010 11:39:08 +0000 (11:39 +0000)]
Use the load balancer to get the server count, not $wgServers
Alexandre Emsenhuber [Sun, 10 Oct 2010 11:27:07 +0000 (11:27 +0000)]
Added a description and @file
Rotem Liss [Sun, 10 Oct 2010 10:15:18 +0000 (10:15 +0000)]
Localization update for he.
Alexandre Emsenhuber [Sun, 10 Oct 2010 09:56:54 +0000 (09:56 +0000)]
Replaced error suppression operator with wfSuppressWarnings()/wfRestoreWarnings()
Alexandre Emsenhuber [Sun, 10 Oct 2010 09:46:52 +0000 (09:46 +0000)]
Return null instead of false SqlBagOStuff::incr(), for consistency with other classes (was breaking e.g. wfIncrStats())
Alexandre Emsenhuber [Sun, 10 Oct 2010 09:21:12 +0000 (09:21 +0000)]
Removed unexisting parameter from doc
Alexandre Emsenhuber [Sun, 10 Oct 2010 09:01:03 +0000 (09:01 +0000)]
exit -> return
Alexandre Emsenhuber [Sun, 10 Oct 2010 08:35:07 +0000 (08:35 +0000)]
Use full path to Maintenance.php
Max Semenik [Sat, 9 Oct 2010 20:40:07 +0000 (20:40 +0000)]
require_once to please CruiseControl, formatting
Raimond Spekking [Sat, 9 Oct 2010 19:32:58 +0000 (19:32 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-09 19:18:00 UTC)
Max Semenik [Sat, 9 Oct 2010 19:19:54 +0000 (19:19 +0000)]
Follow-up r74558: remove var_dump()
Max Semenik [Sat, 9 Oct 2010 19:17:20 +0000 (19:17 +0000)]
Restored the ability to run extension tests from the main runner
Max Semenik [Sat, 9 Oct 2010 19:12:35 +0000 (19:12 +0000)]
* Updated run-tests.bat to take recent changes into account
* Fixed $wgHooks being reset during tests - thanks, Platonides
Max Semenik [Sat, 9 Oct 2010 19:00:44 +0000 (19:00 +0000)]
Follow-up r74553, r74554 and r74555: don't guess, just include stuff properly
Platonides [Sat, 9 Oct 2010 18:40:05 +0000 (18:40 +0000)]
Follow r74554. Also take include path into account.
Platonides [Sat, 9 Oct 2010 18:32:13 +0000 (18:32 +0000)]
Look for PHPUnit folder in the PATH and add support for Windows.
Follow r74553
Platonides [Sat, 9 Oct 2010 18:15:37 +0000 (18:15 +0000)]
Readd after r72566 a phpunit.php so that globals are kept global.
Sam Reed [Sat, 9 Oct 2010 13:59:15 +0000 (13:59 +0000)]
Not sure why watch was marked as deprecated, but unwatch wasn't... Marking unwatch deprecated
Alexandre Emsenhuber [Sat, 9 Oct 2010 13:34:19 +0000 (13:34 +0000)]
Fixed comment; wfEncryptPassword() is deprecated
Alexandre Emsenhuber [Sat, 9 Oct 2010 12:30:20 +0000 (12:30 +0000)]
One more remplacement to __METHOD__
Alexandre Emsenhuber [Sat, 9 Oct 2010 12:15:23 +0000 (12:15 +0000)]
Use __METHOD__; name was false
Alexandre Emsenhuber [Sat, 9 Oct 2010 11:53:19 +0000 (11:53 +0000)]
And while I'm a it: This doesn't require DB access
Alexandre Emsenhuber [Sat, 9 Oct 2010 11:47:40 +0000 (11:47 +0000)]
* Added missing call to parent constructor
* Removed trailing whitespaces
Sam Reed [Sat, 9 Oct 2010 00:01:45 +0000 (00:01 +0000)]
Comment return types, some explicit class variable declaration
Platonides [Fri, 8 Oct 2010 22:51:03 +0000 (22:51 +0000)]
Change the FIXME to the other way.
The issue is, php strtolower() calls tolower(3), which is locale sensitive.
Eg. LC_ALL='pt_BR.ISO-8859-1' php -r'echo strtolower("ÉÁÇÚÍ");'
Adding a call to setlocale(LC_ALL,'C'); in Setup.php may be a good idea.
Platonides [Fri, 8 Oct 2010 22:20:57 +0000 (22:20 +0000)]
Add parsertest for r74526.
Note that if we hadn't the first escaping, we would have a security vulnerability.
So be careful if you break this parser test.
Raimond Spekking [Fri, 8 Oct 2010 21:40:52 +0000 (21:40 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-08 21:23:00 UTC)
Aryeh Gregor [Fri, 8 Oct 2010 18:52:23 +0000 (18:52 +0000)]
Fix double-escaping for section edit link tooltips
Bug 25462.
Trevor Parscal [Fri, 8 Oct 2010 18:42:20 +0000 (18:42 +0000)]
* Improved on r73971 by removing the $name parameter from MessageBlobStore::gerenateMessageBlob, since it was not being used.
* Fixed bug introduced in r73971 caused by using a module name rather than a module object in MessageBlobStore::updateModule
Purodha B Blissenbach [Fri, 8 Oct 2010 17:51:23 +0000 (17:51 +0000)]
More documentation.
Purodha B Blissenbach [Fri, 8 Oct 2010 14:34:56 +0000 (14:34 +0000)]
ConvertGrammar() added to LanguageKsh.php
Roan Kattouw [Fri, 8 Oct 2010 10:49:32 +0000 (10:49 +0000)]
Improve mediaWiki.parser() (which is a very strange name for a function that expands $1, $2, ... in i18n messages) to use .replace() with a callback, so it will handle edge cases like more than 9 parameters ($10 would be treated as $1 followed by a literal 0) or a parameter's value containing $n (which would then get substituted again). Code written by Neil Kandalgaonkar and trivially modified by me.
Roan Kattouw [Fri, 8 Oct 2010 10:25:23 +0000 (10:25 +0000)]
Fix r74454: convert $wgCacheEpoch to a UNIX timestamp before comparing it with other UNIX timestamps
Trevor Parscal [Thu, 7 Oct 2010 23:31:30 +0000 (23:31 +0000)]
* ResourceLoaderModule.php - added basePath argument to ResourceLoaderFileModule::__construct to help make module definitions be less repeditive.
* Vector.hooks.php, WikiEditor.hooks.php - implemented new basePath argument for ResourceLoaderFileModule::__construct
Roan Kattouw [Thu, 7 Oct 2010 19:46:06 +0000 (19:46 +0000)]
Remove $wgMemc->set() call left over from r73645
Roan Kattouw [Thu, 7 Oct 2010 19:35:05 +0000 (19:35 +0000)]
(bug 25201) Respect $wgCacheEpoch in the resource loader
* The mtime of each module is now maxed with $wgCacheEpoch before being used. I chose to make this the caller's responsibility rather than getModifiedTime()'s, otherwise custom modules can (and inevitably will) forget to respect $wgCacheEpoch
* Invalidate message blobs if they're older than $wgCacheEpoch
Raimond Spekking [Thu, 7 Oct 2010 19:25:06 +0000 (19:25 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-07 19:02:00 UTC)
Roan Kattouw [Thu, 7 Oct 2010 18:37:53 +0000 (18:37 +0000)]
Move $j=jQuery alias up to mediawiki.js from wikibits.js, so code running before wikibits.js can use $j
Aaron Schulz [Thu, 7 Oct 2010 18:12:27 +0000 (18:12 +0000)]
Removed single-purpose HTMLCacheUpdate::doUpdate hook, now unused