lhc/web/wiklou.git
13 years agoAssignment in loop conditions suck
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

13 years agoAssignment in loop conditions suck
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)

13 years agoFixes bug in wikibits that causes addPortletLink to fail when adding tabs to the...
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.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
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)

13 years agoFixup "} elseif ( $cond[0] = '!' ) {" from r35983
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

13 years agoAdded $lang parameter to DoEditSectionLink hook. Allows extensions that add or modif...
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.

13 years agoremoving test file
Neil Kandalgaonkar [Wed, 13 Oct 2010 00:27:03 +0000 (00:27 +0000)]
removing test file

13 years agotesting if I can commit
Neil Kandalgaonkar [Wed, 13 Oct 2010 00:26:36 +0000 (00:26 +0000)]
testing if I can commit

13 years agoFollow up r70940. This call should use the hook $result.
Platonides [Tue, 12 Oct 2010 23:20:12 +0000 (23:20 +0000)]
Follow up r70940. This call should use the hook $result.

13 years agoRemove unused array index, add a couple of braces
Sam Reed [Tue, 12 Oct 2010 22:48:22 +0000 (22:48 +0000)]
Remove unused array index, add a couple of braces

13 years agoFinished what r67300 started, by using #ba0000 as the broken "red" link color.
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.

13 years agoImproves on r72776 by adding documentation about the limitations of ResourceLoaderWik...
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.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
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)

13 years ago* Test for the presence of addEventListener on the element on which we will actually...
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.

13 years agoA note about symbolic link and dirname() / include() ...
Antoine Musso [Tue, 12 Oct 2010 18:20:48 +0000 (18:20 +0000)]
A note about symbolic link and dirname() / include() ...

13 years agoPiece I was going to commit in r74681
Max Semenik [Tue, 12 Oct 2010 18:16:53 +0000 (18:16 +0000)]
Piece I was going to commit in r74681

13 years agoImproves on r69445 by removing unneeded conditional. Also fixes a comment typo.
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.

13 years agoFollow-up r74628: convert two remaining calls of patchPath()
Max Semenik [Tue, 12 Oct 2010 18:14:36 +0000 (18:14 +0000)]
Follow-up r74628: convert two remaining calls of patchPath()

13 years agoSimplifies r73680 by letting FormatJson::encode do it's magic with handling null...
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.

13 years agoEnumerate private member to fix build problem on CC
Mark A. Hershberger [Tue, 12 Oct 2010 17:40:52 +0000 (17:40 +0000)]
Enumerate private member to fix build problem on CC

13 years agoNOTE THAT THIS COMMIT REVEALS FAILING PARSER TESTS WHEN THEY ARE RUN IN PHPUnit....
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.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
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)

13 years agoTurned Database::patchPath() into a member function, less globals to care about
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

13 years agoRemove $wgRemoteUploads. It was not well supported and superseded by $wgUploadNavigat...
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

13 years agoWhen reading an old-style user_options blob, use the default value for any preference...
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)

13 years ago(bug 25474) Fix wrong parameters in updateModule() call. r74525 tried to fix this...
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

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
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)

13 years agoRemoved error suppression operators
Alexandre Emsenhuber [Sun, 10 Oct 2010 18:18:08 +0000 (18:18 +0000)]
Removed error suppression operators

13 years agoSpace
Platonides [Sun, 10 Oct 2010 14:45:00 +0000 (14:45 +0000)]
Space

13 years agoFollow up r74135 removing the globals, too.
Platonides [Sun, 10 Oct 2010 14:39:16 +0000 (14:39 +0000)]
Follow up r74135 removing the globals, too.
htmlescape the global.

13 years agoAdded description to language classes
Alexandre Emsenhuber [Sun, 10 Oct 2010 12:53:37 +0000 (12:53 +0000)]
Added description to language classes

13 years agoLocalisation tweak
Max Semenik [Sun, 10 Oct 2010 12:35:36 +0000 (12:35 +0000)]
Localisation tweak

13 years agoUse wfGetLB()->getServerCount() to get the server count, not $wgDBservers
Alexandre Emsenhuber [Sun, 10 Oct 2010 12:20:53 +0000 (12:20 +0000)]
Use wfGetLB()->getServerCount() to get the server count, not $wgDBservers

13 years agoUse the load balancer to get the server count, not $wgServers
Alexandre Emsenhuber [Sun, 10 Oct 2010 11:39:08 +0000 (11:39 +0000)]
Use the load balancer to get the server count, not $wgServers

13 years agoAdded a description and @file
Alexandre Emsenhuber [Sun, 10 Oct 2010 11:27:07 +0000 (11:27 +0000)]
Added a description and @file

13 years agoLocalization update for he.
Rotem Liss [Sun, 10 Oct 2010 10:15:18 +0000 (10:15 +0000)]
Localization update for he.

13 years agoReplaced error suppression operator with wfSuppressWarnings()/wfRestoreWarnings()
Alexandre Emsenhuber [Sun, 10 Oct 2010 09:56:54 +0000 (09:56 +0000)]
Replaced error suppression operator with wfSuppressWarnings()/wfRestoreWarnings()

13 years agoReturn null instead of false SqlBagOStuff::incr(), for consistency with other classes...
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())

13 years agoRemoved unexisting parameter from doc
Alexandre Emsenhuber [Sun, 10 Oct 2010 09:21:12 +0000 (09:21 +0000)]
Removed unexisting parameter from doc

13 years agoexit -> return
Alexandre Emsenhuber [Sun, 10 Oct 2010 09:01:03 +0000 (09:01 +0000)]
exit -> return

13 years agoUse full path to Maintenance.php
Alexandre Emsenhuber [Sun, 10 Oct 2010 08:35:07 +0000 (08:35 +0000)]
Use full path to Maintenance.php

13 years agorequire_once to please CruiseControl, formatting
Max Semenik [Sat, 9 Oct 2010 20:40:07 +0000 (20:40 +0000)]
require_once to please CruiseControl, formatting

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
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)

13 years agoFollow-up r74558: remove var_dump()
Max Semenik [Sat, 9 Oct 2010 19:19:54 +0000 (19:19 +0000)]
Follow-up r74558: remove var_dump()

13 years agoRestored the ability to run extension tests from the main runner
Max Semenik [Sat, 9 Oct 2010 19:17:20 +0000 (19:17 +0000)]
Restored the ability to run extension tests from the main runner

13 years ago* Updated run-tests.bat to take recent changes into account
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

13 years agoFollow-up r74553, r74554 and r74555: don't guess, just include stuff properly
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

13 years agoFollow r74554. Also take include path into account.
Platonides [Sat, 9 Oct 2010 18:40:05 +0000 (18:40 +0000)]
Follow r74554. Also take include path into account.

13 years agoLook for PHPUnit folder in the PATH and add support for Windows.
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

13 years agoReadd after r72566 a phpunit.php so that globals are kept global.
Platonides [Sat, 9 Oct 2010 18:15:37 +0000 (18:15 +0000)]
Readd after r72566 a phpunit.php so that globals are kept global.

13 years agoNot sure why watch was marked as deprecated, but unwatch wasn't... Marking unwatch...
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

13 years agoFixed comment; wfEncryptPassword() is deprecated
Alexandre Emsenhuber [Sat, 9 Oct 2010 13:34:19 +0000 (13:34 +0000)]
Fixed comment; wfEncryptPassword() is deprecated

13 years agoOne more remplacement to __METHOD__
Alexandre Emsenhuber [Sat, 9 Oct 2010 12:30:20 +0000 (12:30 +0000)]
One more remplacement to __METHOD__

13 years agoUse __METHOD__; name was false
Alexandre Emsenhuber [Sat, 9 Oct 2010 12:15:23 +0000 (12:15 +0000)]
Use __METHOD__; name was false

13 years agoAnd while I'm a it: This doesn't require DB access
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

13 years ago* Added missing call to parent constructor
Alexandre Emsenhuber [Sat, 9 Oct 2010 11:47:40 +0000 (11:47 +0000)]
* Added missing call to parent constructor
* Removed trailing whitespaces

13 years agoComment return types, some explicit class variable declaration
Sam Reed [Sat, 9 Oct 2010 00:01:45 +0000 (00:01 +0000)]
Comment return types, some explicit class variable declaration

13 years agoChange the FIXME to the other way.
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.

13 years agoAdd parsertest for r74526.
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.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
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)

13 years agoFix double-escaping for section edit link tooltips
Aryeh Gregor [Fri, 8 Oct 2010 18:52:23 +0000 (18:52 +0000)]
Fix double-escaping for section edit link tooltips

Bug 25462.

13 years ago* Improved on r73971 by removing the $name parameter from MessageBlobStore::gerenateM...
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

13 years agoMore documentation.
Purodha B Blissenbach [Fri, 8 Oct 2010 17:51:23 +0000 (17:51 +0000)]
More documentation.

13 years agoConvertGrammar() added to LanguageKsh.php
Purodha B Blissenbach [Fri, 8 Oct 2010 14:34:56 +0000 (14:34 +0000)]
ConvertGrammar() added to LanguageKsh.php

13 years agoImprove mediaWiki.parser() (which is a very strange name for a function that expands...
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.

13 years agoFix r74454: convert $wgCacheEpoch to a UNIX timestamp before comparing it with other...
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

13 years ago* ResourceLoaderModule.php - added basePath argument to ResourceLoaderFileModule...
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

13 years agoRemove $wgMemc->set() call left over from r73645
Roan Kattouw [Thu, 7 Oct 2010 19:46:06 +0000 (19:46 +0000)]
Remove $wgMemc->set() call left over from r73645

13 years ago(bug 25201) Respect $wgCacheEpoch in the resource loader
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

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
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)

13 years agoMove $j=jQuery alias up to mediawiki.js from wikibits.js, so code running before...
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

13 years agoRemoved single-purpose HTMLCacheUpdate::doUpdate hook, now unused
Aaron Schulz [Thu, 7 Oct 2010 18:12:27 +0000 (18:12 +0000)]
Removed single-purpose HTMLCacheUpdate::doUpdate hook, now unused

13 years ago(bug 25276) Fix TOC show/hide toggle. Original fix in r70887 (resourceloader branch...
Roan Kattouw [Thu, 7 Oct 2010 18:12:06 +0000 (18:12 +0000)]
(bug 25276) Fix TOC show/hide toggle. Original fix in r70887 (resourceloader branch), JS change was lost when the mediawiki.legacy.*.js files were removed later and never got ported to wikibits.js

13 years agoRemove obsolete TODO comment
Roan Kattouw [Thu, 7 Oct 2010 17:56:43 +0000 (17:56 +0000)]
Remove obsolete TODO comment

13 years agoRemove $wgUseDataURLs as promised by the comment in DefaultSettings.php . Data URL...
Roan Kattouw [Thu, 7 Oct 2010 17:48:46 +0000 (17:48 +0000)]
Remove $wgUseDataURLs as promised by the comment in DefaultSettings.php . Data URL embedding is now always used.

13 years agoFix spelling in comment
Roan Kattouw [Thu, 7 Oct 2010 17:41:58 +0000 (17:41 +0000)]
Fix spelling in comment

13 years agoWhitespace consistency
Max Semenik [Thu, 7 Oct 2010 17:13:24 +0000 (17:13 +0000)]
Whitespace consistency

13 years agoRevert r74273 per CR: this patch is not needed because our SQL conversion magic handl...
Max Semenik [Thu, 7 Oct 2010 16:20:20 +0000 (16:20 +0000)]
Revert r74273 per CR: this patch is not needed because our SQL conversion magic handles the MySQL version just fine, and I've tweaked it in r74428 to look nicer

13 years agoSupport conversion of floating-point MySQL types in DatabaseSqlite::sourceStream()
Max Semenik [Thu, 7 Oct 2010 16:13:54 +0000 (16:13 +0000)]
Support conversion of floating-point MySQL types in DatabaseSqlite::sourceStream()

13 years agoCreated mediawiki.views.history and moved init functionality from mediawiki.legacy...
Trevor Parscal [Wed, 6 Oct 2010 21:37:51 +0000 (21:37 +0000)]
Created mediawiki.views.history and moved init functionality from mediawiki.legacy.history to it.

13 years agoExplicit class variable definition
Sam Reed [Wed, 6 Oct 2010 21:18:55 +0000 (21:18 +0000)]
Explicit class variable definition

Parameter hints

13 years agoFollowup r71831, User::newFromName, not newFromText
Sam Reed [Wed, 6 Oct 2010 21:16:28 +0000 (21:16 +0000)]
Followup r71831, User::newFromName, not newFromText

13 years ago* Moved search/IE7 specific CSS rule into search.css with a CSS hack, which is now...
Trevor Parscal [Wed, 6 Oct 2010 20:42:08 +0000 (20:42 +0000)]
* Moved search/IE7 specific CSS rule into search.css with a CSS hack, which is now part of mediawiki.legacy.search, reducing the number of requests for IE7 users by 1
* Added mediawiki.specials.search, which will eventually replace mediawiki.legacy.search
* Removed javascript injections in the body which were focusing the search box on load
* Added emulation for HTML5 autofocus attribute on the search page, this may be useful elsewhere and should be considered for use globally

13 years agoRemoved CSS file/rule which was added to fix a bug it never actually fixed. More...
Trevor Parscal [Wed, 6 Oct 2010 20:37:34 +0000 (20:37 +0000)]
Removed CSS file/rule which was added to fix a bug it never actually fixed. More investigation needs to be put into bug #19334

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Wed, 6 Oct 2010 19:31:45 +0000 (19:31 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-06 19:11:00 UTC)

13 years agoImproved on r74282 and r74333 in response to CR comments.
Trevor Parscal [Wed, 6 Oct 2010 19:05:59 +0000 (19:05 +0000)]
Improved on r74282 and r74333 in response to CR comments.

13 years agoNew-installer: removed an ugly and unneeded warning, there's nothing special about...
Max Semenik [Wed, 6 Oct 2010 16:31:50 +0000 (16:31 +0000)]
New-installer: removed an ugly and unneeded warning, there's nothing special about adding full-text support

13 years agoFix (marking as incomplete) the test ApiWatchTest::testGetRollbackToken for
Platonides [Wed, 6 Oct 2010 16:29:18 +0000 (16:29 +0000)]
Fix (marking as incomplete) the test ApiWatchTest::testGetRollbackToken for
Failed asserting that an array has the key <string:pageid>

when there's no [[Main Page]] (eg. it was installed in a different language).

13 years agoIf Main page is missing for testGetRollbackToken, mark as imcomplete (bloody unit...
Sam Reed [Wed, 6 Oct 2010 16:00:54 +0000 (16:00 +0000)]
If Main page is missing for testGetRollbackToken, mark as imcomplete (bloody unit tests)

13 years agoTweak INSTALL to be more accurate with new-installer. Will do UPGRADE later
Chad Horohoe [Wed, 6 Oct 2010 14:02:23 +0000 (14:02 +0000)]
Tweak INSTALL to be more accurate with new-installer. Will do UPGRADE later

13 years agoMoved the HTML5 placeholder attribute emulation in ext.vector.simpleSearch into it...
Trevor Parscal [Tue, 5 Oct 2010 23:24:56 +0000 (23:24 +0000)]
Moved the HTML5 placeholder attribute emulation in ext.vector.simpleSearch into it's own jQuery plugin called jquery.placeholder.

13 years agoFixed jQuery bug/enahnced jQuery to not blindly convert anything that's not a string...
Trevor Parscal [Tue, 5 Oct 2010 21:51:24 +0000 (21:51 +0000)]
Fixed jQuery bug/enahnced jQuery to not blindly convert anything that's not a string to an integer and append 'px', resulting in values like "nullpx" and "NaNpx" which would cause errors in Internet Explorer. Now we are using ( parseInt( size ) || 0 ) + "px" so that if size is null or NaN it will be converted to 0. I've also passed this upstream (dev.jquery.com/ticket/7116)

13 years ago* Fixed mistake made in r74271 where some functions were moved from core jquery.wikiE...
Trevor Parscal [Tue, 5 Oct 2010 20:54:38 +0000 (20:54 +0000)]
* Fixed mistake made in r74271 where some functions were moved from core jquery.wikiEditor into jquery.wikiEditor.iframe, causing errors for textarea mode. These changes properly split the functions, allowing the iframe to override the textarea functions, and using $.client to only execute them on IE. (tested in IE7)
* Also fixed IE bug, where "delete window.myThing;" fails but "delete myThing;" succeeds.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Tue, 5 Oct 2010 18:54:47 +0000 (18:54 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-05 18:38:00 UTC)

13 years agoremoving file I used to test commit access
Neil Kandalgaonkar [Tue, 5 Oct 2010 18:35:02 +0000 (18:35 +0000)]
removing file I used to test commit access

13 years agotesting commit access
Neil Kandalgaonkar [Tue, 5 Oct 2010 18:34:39 +0000 (18:34 +0000)]
testing commit access

13 years agoRevert r74286, r74287 -- broke parserTests completely; mixed lots of formatting and...
Brion Vibber [Tue, 5 Oct 2010 15:10:14 +0000 (15:10 +0000)]
Revert r74286, r74287 -- broke parserTests completely; mixed lots of formatting and code cleanup in with functional changes making it impossible to review cleanly.

13 years agoRemove parserTests.inc checks, as testing is now done quite differently.
Greg Sabino Mullane [Tue, 5 Oct 2010 15:00:19 +0000 (15:00 +0000)]
Remove parserTests.inc checks, as testing is now done quite differently.

13 years agoMake the watchlist query ordering consistent across DBs.
Greg Sabino Mullane [Tue, 5 Oct 2010 13:36:05 +0000 (13:36 +0000)]
Make the watchlist query ordering consistent across DBs.

13 years ago(second commit to get all files.)
Mark A. Hershberger [Tue, 5 Oct 2010 03:51:49 +0000 (03:51 +0000)]
(second commit to get all files.)

= BacklinkCache.php =
* BacklinkCache class
** Set a few otherwise unset varables ($wgContLang & $wgMemc in
   BacklinkCache)
= testHelpers.inc =
* TectRecorder class
** TestRecorder::record() accept and use a recorder object
** change TestFileIterator::setParser use a MediaWikiParserTest instead
   of ParserTest
= parserTest.inc =
* ParserTest class
** Make $ParserTest->regex and $ParsaerTest->savedGlobals member
   variables available to stop warnings.
** Force ParserTest::$showProgress and $showFailure to false
** Set ParserTest::$uploadDir on time
** Move ParserTest::chomp() and addArticle() to bootstrap for
   MediaWikiTestSetup.
** Update ParserTest::runTest so that Success and Failure are reported
   via reporter->showsTestResult() or ParserTestSuiteBackend::show*()
   as needed.
** Set $ParserTest->uploadDir with setupUploadDir()
** Change ParserTest->setupGlobals() so that $wgDBprefix doesn't get
   to set to the “parsertest_” bits.
** Sprinkle $this->teardownGlobals() at exit points in
  ParserTest->teardownDatabase()
= bootstrap.php =
* MediaWikiTestSetup class
** Make member variables MediaWikiTestSetup::$suite,
  MediaW* Make member variables MediaWikiTestSetup::$suite,
  MediaWikiTestSetup::$regex, MediaWikiTestSetup::$runDisabled
  available.
* Setup a constructor MediaWikiTestSetup that accepts an optional
  PHPUnit_Framework_TestSuite so they can use PHPUnit.
* Change MediaWikiParserTest so that it is derived from
  MediaWikiTestSetup instead of PHPUnit_Framework_TestSuite
* Make MediaWikiParserTest create a PHPUnit_Framework_TestSuite for
  the parser tests and pass it to the new parent (MediaWikiTestSetup)
  as the PHPUnit testsuite.
* Replace MediaWikiParserTest->run() with MediaWikiParserTest::suite()
  so that the tests can be loaded into a suite and then run with
  PHPUnit's test runner.
= ParserHelpers.php =
* ParserUnitTest class
** Force run() $backend to use ParserTestSuiteBackend instead of
   trying to get the  backend from the suite member.
** Use ParserTest::runTest() instead of
  ParserikiTestSetup::$regex, MediaWikiTestSetup::$runDisabled
  available.
** Setup a constructor MediaWikiTestSetup that accepts an optional
   PHPUnit_Framework_TestSuite so they can use PHPUnit.
** Change MediaWikiParserTest so that it is derived from
   MediaWikiTestSetup instead of PHPUnit_Framework_TestSuite
** Make MediaWikiParserTest create a PHPUnit_Framework_TestSuite for
   the parser tests and pass it to the new parent (MediaWikiTestSetup)
   as the PHPUnit testsuite.
** Replace MediaWikiParserTest->run() with MediaWikiParserTest::suite()
   so that the tests can be loaded into a suite and then run with
   PHPUnit's test runner.
= ParserHelpers.php =
* ParserUnitTest class
** Force run() $backend to use ParserTestSuiteBackend instead of
   trying to get the  backend from the suite member.
** Use ParserTest::runTest() instead of
  ParserTestSuiteBackend::runTest()
* ParserTestSuiteBackend class
** extends PHPUnit_FrameWork_TestSuite instead of ParserTest
** Add member variables  $recorder, $term, and $usePHPUnit
** Add a constructor that determines if PHPUnit is usewd.
** Add a method showTestResult() that can be used to show success or
   failure
** Change showSucess and showFailure() to be static and use identical
   arguments and only use PHPUnit_Framework_Assert::assertEquals
   when PHPUnit is in use.
= SearchEngineTest.php =
** Fix path in require to bootstrap.php