lhc/web/wiklou.git
13 years ago* unified where clause parameter wrapping for delete, update and selectRow
Jure Kajzer [Wed, 1 Jun 2011 11:38:25 +0000 (11:38 +0000)]
* unified where clause parameter wrapping for delete, update and selectRow
* fixed replace where clause handling

13 years ago* updated listTables function to also take in account possible user-dbname difference
Jure Kajzer [Wed, 1 Jun 2011 08:41:44 +0000 (08:41 +0000)]
* updated listTables function to also take in account possible user-dbname difference
* using different database will still probabbly break phpunit tests, but it's a step

13 years ago* upgrade patches for oracle 1.17->1.19
Jure Kajzer [Wed, 1 Jun 2011 08:27:51 +0000 (08:27 +0000)]
* upgrade patches for oracle 1.17->1.19
* fixed tableExists to handle possible username-dbname difference
* added indexExists for updater
* fixed a bug in DatabaseUpdater
* tried not to produce bugs (may have failed)

13 years agoFix for r89248: don't run the regex if findIE6Extension returns false. Only affects...
Tim Starling [Wed, 1 Jun 2011 02:05:18 +0000 (02:05 +0000)]
Fix for r89248: don't run the regex if findIE6Extension returns false. Only affects performance, the logic is the same.

13 years ago* Only blacklist query string extensions which match /^[a-zA-Z0-9_-]+$/. This avoids...
Tim Starling [Wed, 1 Jun 2011 02:01:59 +0000 (02:01 +0000)]
* Only blacklist query string extensions which match /^[a-zA-Z0-9_-]+$/. This avoids blacklisting pretty much every api.php URL with a dot in it, due to extensions like "webm&smaxage=3600&maxage=3600&format=jsonfm" being detected. Such an extension is unlikely to be registered to a dangerous file type. The proposed regex matches all extensions registered in HKEY_CLASSES_ROOT on my Windows XP VM, but does not include the ampersand, so avoids matching multiple URL parameters.
* Fixed a logic error in WebRequest::isPathInfoBad() from r88883, which caused dangerous PATH_INFO strings to be allowed as long as QUERY_STRING was set.
* Refactored the query string checks in WebRequest and img_auth.php into a single new function: isQueryStringBad().

13 years agoFollow-up to r89243 to fix the async qunit test
Brion Vibber [Wed, 1 Jun 2011 01:24:45 +0000 (01:24 +0000)]
Follow-up to r89243 to fix the async qunit test

Per CR & IRC discussion; added the missing stop() & start() calls, and using the timeout parameter for stop() so we can actually detect the regression (original bug caused neither the success nor failure callbacks to fire, so the test runner would just stop)

13 years agoFixes for r88883, r89197:
Tim Starling [Wed, 1 Jun 2011 00:51:09 +0000 (00:51 +0000)]
Fixes for r88883, r89197:
* Modified WebRequest::findIE6Extension() to fix the performance issue and the hash parsing issue I noted on CR
* In FindIE6ExtensionTest, fixed all the assertEquals() calls, I had the expected and actual around the wrong way
* Added a couple of extra tests for cases that seemed important during the rewrite.

13 years agorm only core usage of in_string(), I think it's silly
Chad Horohoe [Wed, 1 Jun 2011 00:15:02 +0000 (00:15 +0000)]
rm only core usage of in_string(), I think it's silly

13 years agoFollow-up to r88706: add qunit regression test case for bug 29107.
Brion Vibber [Wed, 1 Jun 2011 00:13:31 +0000 (00:13 +0000)]
Follow-up to r88706: add qunit regression test case for bug 29107.

Confirms that messages-only modules trigger a ready callback.

13 years agoFix for r89206, r89218: always supply constructor parameters
Tim Starling [Tue, 31 May 2011 23:50:11 +0000 (23:50 +0000)]
Fix for r89206, r89218: always supply constructor parameters

13 years agoThe big regex at doMagicLinks deserves being more thoroughly studied.
Platonides [Tue, 31 May 2011 21:52:39 +0000 (21:52 +0000)]
The big regex at doMagicLinks deserves being more thoroughly studied.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 31 May 2011 20:45:21 +0000 (20:45 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-05-31 20:17:00 UTC)

13 years agoreally add NewParserTest to the Stub group
Antoine Musso [Tue, 31 May 2011 20:35:35 +0000 (20:35 +0000)]
really add NewParserTest to the Stub group

PHPUnit 5.3.13 does not like having comments after the '@group name' command.
This class was not part of the Stub group and run despite the exclusion of
the Stub group in our suite.xml

Properly fix issue described in r89223 and complete r89226

13 years agoRevert r89223. MediaWikiParserTest is needed to run all the $wgParserTestFiles
Platonides [Tue, 31 May 2011 20:30:12 +0000 (20:30 +0000)]
Revert r89223. MediaWikiParserTest is needed to run all the $wgParserTestFiles
NewParserTest.php standalone running of the first $wgParserTestFiles item is just a convenience.

13 years agoLocalization update for he.
Rotem Liss [Tue, 31 May 2011 20:25:31 +0000 (20:25 +0000)]
Localization update for he.

13 years agoFollowup r87584, r87963
Sam Reed [Tue, 31 May 2011 20:23:02 +0000 (20:23 +0000)]
Followup r87584, r87963

Why not fix both?

13 years agoNewParserTest.php can now work independently
Antoine Musso [Tue, 31 May 2011 19:51:48 +0000 (19:51 +0000)]
NewParserTest.php can now work independently

PHPUnit load class according to their order on the filesystem I guess.
On the cruisecontrol host, it first load NewParserTest.php and run
the test then load MediaWikiParserTest.php which run the tests too!

On my host the order is reversed, and NewParserTest.php is never run
for a reason I have not investigated.

Anyway, deleting the MediaWikiParserTest.php is harmless since it is
redundant with NewParserTest.php

(should fix cruise control)

13 years agothis method should not be private? the parser function docs use it as public
Jeroen De Dauw [Tue, 31 May 2011 17:19:11 +0000 (17:19 +0000)]
this method should not be private? the parser function docs use it as public

13 years agoProfiler can be constructed without param
Antoine Musso [Tue, 31 May 2011 17:18:15 +0000 (17:18 +0000)]
Profiler can be constructed without param

Before that patch, we could see warnings such as:
  Missing argument 1 for Profiler::__construct(),

13 years agorevert r84022 parser tests (code reverted by r89088)
Antoine Musso [Tue, 31 May 2011 06:17:59 +0000 (06:17 +0000)]
revert r84022 parser tests (code reverted by r89088)

The code cause bug 29197 (PHP 5.3.x crash) and the parser tests are
blocking cruise control.

13 years ago* Use Preprocessor_Hash by default in compiled mode, it is faster
Tim Starling [Tue, 31 May 2011 06:10:23 +0000 (06:10 +0000)]
* Use Preprocessor_Hash by default in compiled mode, it is faster
* Don't profile MagicWord::get(), it is very fast and the profiling overhead was excessive. Profile MagicWord::load() instead.

13 years ago* Made the profiler work in HipHop:
Tim Starling [Tue, 31 May 2011 06:05:05 +0000 (06:05 +0000)]
* Made the profiler work in HipHop:
** Don't try to set a global variable in the same file as a class definition (Profiler.php). Set it in WebStart.php instead.
** In StartProfiler.sample, don't use require_once() to get ProfilerStub.

* Removed the setproctitle() stuff from ProfilerStub, the extension is not maintained and doesn't work with Apache 2.x
* Added an optimisation to wfProfileIn() and wfProfileOut() to reduce the overhead when profiling is not enabled
* Added the ability to configure in StartProfiler.php whether CPU time or wall-clock time is used, avoiding recompilation

13 years agoMake $wgDebugRawPage=false also ignore load.php, so that debug logs can be readable...
Tim Starling [Tue, 31 May 2011 05:55:06 +0000 (05:55 +0000)]
Make $wgDebugRawPage=false also ignore load.php, so that debug logs can be readable again.

13 years ago* Fix hphpi mode in run-server, it wasn't quite working properly
Tim Starling [Tue, 31 May 2011 05:50:48 +0000 (05:50 +0000)]
* Fix hphpi mode in run-server, it wasn't quite working properly

13 years agoTests for r88883, including two failing tests.
Tim Starling [Tue, 31 May 2011 02:09:22 +0000 (02:09 +0000)]
Tests for r88883, including two failing tests.

13 years agoRevert r89013 and add better tests.
Platonides [Mon, 30 May 2011 22:25:15 +0000 (22:25 +0000)]
Revert r89013 and add better tests.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 30 May 2011 20:28:52 +0000 (20:28 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-05-30 20:19:00 UTC)

13 years agoadd broken test to broken group (not incomplete)
Antoine Musso [Mon, 30 May 2011 18:58:07 +0000 (18:58 +0000)]
add broken test to broken group (not incomplete)

This test suite really needs to be fixed, marking them as incomplete does not
let us tests them easily.  Instead, I have added them to the Broken group thus
we can easily run them and do not break the continuous integration system.

13 years agorvv:P r89179: it doesn't work on Windows Which should have been clear from comment...
Max Semenik [Mon, 30 May 2011 18:40:27 +0000 (18:40 +0000)]
rvv:P r89179: it doesn't work on Windows Which should have been clear from comment a few lines above

13 years agoKill httpSessionDownload.php, uses Http::doSessionIdDownload() that was removed in...
Alexandre Emsenhuber [Mon, 30 May 2011 18:28:15 +0000 (18:28 +0000)]
Kill httpSessionDownload.php, uses Http::doSessionIdDownload() that was removed in r61352

13 years agoenable colors in PHPUnit
Antoine Musso [Mon, 30 May 2011 18:26:46 +0000 (18:26 +0000)]
enable colors in PHPUnit

Since PHPUnit support color output, we might as well use it :)

13 years ago* make preprocessorFuzzTest.php pass the Title object to Parser, removed checks for...
Alexandre Emsenhuber [Mon, 30 May 2011 16:10:23 +0000 (16:10 +0000)]
* make preprocessorFuzzTest.php pass the Title object to Parser, removed checks for non-object in Parser
* make the parser use ParserOptions::getUser() instead of $wgUser
* fixed some E_NOTICE and E_STRICT in preprocessorFuzzTest.php

13 years agoHipHop improvements:
Tim Starling [Mon, 30 May 2011 13:49:09 +0000 (13:49 +0000)]
HipHop improvements:
* Added the ability to compile extensions. The build process is bootstrapped by running MediaWiki in interpreted mode. Extension setup file inclusions are slightly modified in a way that makes them register themselves for compilation. Then the same LocalSettings.php uses the compiled extension setup file when the compiled binary runs.
* Tested with Cite and ParserFunctions. The code which lets you have an extensions directory in a place other than $IP/../extensions is untested.
* Simplified WebStart.php slightly by using a custom $_SERVER variable to mark compiled mode. It will break if you don't use the supplied server.conf, but that will break a lot of things so don't do that.
* Fixed the core web entry points to include WebStart.php in compiled mode instead of interpreted.
* Made the build directory configurable. This is mostly so that I can grep the source tree without seeing loads of generated C++.
* In server.conf, added a rewrite rule allowing a /wiki/$1 article path.
* Removed server.conf log file location "/dev/stdout", breaks when you switch user
* Disable static content cache, breaks horribly when you set SourceRoot to a directory containing 7GB of files.
* Rewrote the run-server script in PHP, mostly to support the configurable build directory feature.
* Added an option to the run-server script to allow running in interpreted (hphpi) mode.

13 years ago$newTablePrefix must be passed. All callers are ok
Chad Horohoe [Mon, 30 May 2011 02:06:12 +0000 (02:06 +0000)]
$newTablePrefix must be passed. All callers are ok

13 years agowhitespace
Chad Horohoe [Mon, 30 May 2011 01:57:53 +0000 (01:57 +0000)]
whitespace

13 years ago@ingroup things
Chad Horohoe [Mon, 30 May 2011 00:21:06 +0000 (00:21 +0000)]
@ingroup things

13 years agoMisc. exception handling cleanup--moved it out of global function namespace
Chad Horohoe [Mon, 30 May 2011 00:18:10 +0000 (00:18 +0000)]
Misc. exception handling cleanup--moved it out of global function namespace
Also removed htmlHeader() and htmlFooter() since it has zero callers anywhere.
Not sure why useOutputPage() was checking isArticleRelated(), we should be able do use it with other stuff too

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sun, 29 May 2011 21:50:09 +0000 (21:50 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-05-29 21:31:00 UTC)

13 years agoAdd back space between size and comment in history pages (fix for r86764)
Aaron Schulz [Sun, 29 May 2011 20:33:26 +0000 (20:33 +0000)]
Add back space between size and comment in history pages (fix for r86764)

13 years agoFix for r89114: handle other DBMSes
Aaron Schulz [Sun, 29 May 2011 19:18:53 +0000 (19:18 +0000)]
Fix for r89114: handle other DBMSes

13 years agoBroke long line
Aaron Schulz [Sun, 29 May 2011 19:05:41 +0000 (19:05 +0000)]
Broke long line

13 years agoFix up a couple of deprecated calls
Sam Reed [Sun, 29 May 2011 18:32:30 +0000 (18:32 +0000)]
Fix up a couple of deprecated calls

Documentation

13 years agoRevert r89120
Sam Reed [Sun, 29 May 2011 18:00:59 +0000 (18:00 +0000)]
Revert r89120

13 years agoadded jquery.ui.droppable.js which was missing in jquery.ui.dialog.js;fixes LiquidThr...
Thomas Gries [Sun, 29 May 2011 17:19:25 +0000 (17:19 +0000)]
added jquery.ui.droppable.js which was missing in jquery.ui.dialog.js;fixes LiquidThreads drag to new location not working bug28407 *hopefully this breaks nothing else* my first commit to core *pls. check that nothing breaks as consequence from this commit

13 years agoMore documentation!
Sam Reed [Sun, 29 May 2011 16:32:43 +0000 (16:32 +0000)]
More documentation!

13 years agoMore documentation!
Sam Reed [Sun, 29 May 2011 16:32:05 +0000 (16:32 +0000)]
More documentation!

13 years agoMore documentation!
Sam Reed [Sun, 29 May 2011 15:59:47 +0000 (15:59 +0000)]
More documentation!

13 years agoMore documentation!
Sam Reed [Sun, 29 May 2011 15:53:18 +0000 (15:53 +0000)]
More documentation!

13 years agoFollowup r89114: Ctrl-S is your friend...
Raimond Spekking [Sun, 29 May 2011 15:45:02 +0000 (15:45 +0000)]
Followup r89114: Ctrl-S is your friend...

13 years agoFix a regression from r63144: "Fixed bizarre $time comparison (compared display time...
Raimond Spekking [Sun, 29 May 2011 15:43:28 +0000 (15:43 +0000)]
Fix a regression from r63144: "Fixed bizarre $time comparison (compared display time and a UNIX const time)"
That's not correct: Timestamps in table logging are stored as yyyymmddhhmmss

13 years agoFleshed out file
Sam Reed [Sun, 29 May 2011 15:40:17 +0000 (15:40 +0000)]
Fleshed out file

13 years agoSome language love
Sam Reed [Sun, 29 May 2011 15:21:03 +0000 (15:21 +0000)]
Some language love

13 years agoSome language love
Sam Reed [Sun, 29 May 2011 15:20:43 +0000 (15:20 +0000)]
Some language love

13 years agoSome language love
Sam Reed [Sun, 29 May 2011 15:03:33 +0000 (15:03 +0000)]
Some language love

13 years agoFollowup r89099 per RobertL's CR: Remove now unused parameter. Thanks :)
Raimond Spekking [Sun, 29 May 2011 14:53:14 +0000 (14:53 +0000)]
Followup r89099 per RobertL's CR: Remove now unused parameter. Thanks :)

13 years agoFollowup r83140, fix undefined $id
Sam Reed [Sun, 29 May 2011 14:28:01 +0000 (14:28 +0000)]
Followup r83140, fix undefined $id

13 years agoAnd even more documentation in various files
Sam Reed [Sun, 29 May 2011 14:25:20 +0000 (14:25 +0000)]
And even more documentation in various files

13 years agoEven more documentation in various files
Sam Reed [Sun, 29 May 2011 14:24:27 +0000 (14:24 +0000)]
Even more documentation in various files

13 years agoMore documentation in various files
Sam Reed [Sun, 29 May 2011 14:01:47 +0000 (14:01 +0000)]
More documentation in various files

13 years agoMore documentation for File
Sam Reed [Sun, 29 May 2011 13:33:29 +0000 (13:33 +0000)]
More documentation for File

13 years agoFix message key for account creation by e-mail.
Raimond Spekking [Sun, 29 May 2011 13:22:13 +0000 (13:22 +0000)]
Fix message key for account creation by e-mail.
'noemail' => 'There is no e-mail address recorded for user "$1".' is misleading/wrong.
The long existing message 'noemailcreate' => 'You need to provide a valid e-mail address' is unused. No idea what happened in the past.
Needs merging to 1.17, 1.18

13 years agoFix mw.log. Broken by variable renaming in r89082
Derk-Jan Hartman [Sun, 29 May 2011 12:25:29 +0000 (12:25 +0000)]
Fix mw.log. Broken by variable renaming in r89082

13 years agoRv r84022 for now: crashes PHP on large url strings (bug29197), which is a nasty...
Happy-melon [Sun, 29 May 2011 09:32:17 +0000 (09:32 +0000)]
Rv r84022 for now: crashes PHP on large url strings (bug29197), which is a nasty DOS vector.  Leaving the parser tests in because this should definitely be fixed and reimplemented...

13 years agoPreviousTarget is now optional when blocking a user
Antoine Musso [Sun, 29 May 2011 07:00:52 +0000 (07:00 +0000)]
PreviousTarget is now optional when blocking a user

The API does not seem to give a PreviousTarget field all the time.
This patch also fix the an assertion for ApiBlockTest::testMakeNormalBlock

13 years agoOnly whitelist it if QUnit is in that mode though (bug in QUnit?), caused it to repor...
Krinkle [Sun, 29 May 2011 04:19:51 +0000 (04:19 +0000)]
Only whitelist it if QUnit is in that mode though (bug in QUnit?), caused it to report an error if not in noglobals mode. (Follow-up r89085)

13 years agoFix issues raised through TestSwarm
Krinkle [Sun, 29 May 2011 04:11:10 +0000 (04:11 +0000)]
Fix issues raised through TestSwarm
* Instead of delete window.foobar whitelist the global in QUnit.config.pollution
** the reason either is needed is to make QUnit's "noglobal" option useful)
** delete window.foo throws an "TypeError: Object doesn't support this action" in Internet Explorer.
-> http://perfectionkills.com/understanding-delete/
* Remove other globals introduced

13 years agoFix r89083: Actually add the directory
Krinkle [Sun, 29 May 2011 03:23:52 +0000 (03:23 +0000)]
Fix r89083: Actually add the directory

13 years agoIntroducing mw.libs, moving JpegMeta into it.
Krinkle [Sun, 29 May 2011 03:13:54 +0000 (03:13 +0000)]
Introducing mw.libs, moving JpegMeta into it.
* Reverts/re-do's r88794 and r88796.
** mediawiki.util.js no longer extends itself but is defined once.
** mediawiki.util.jpegmeta no longer extends mw.util but is installed as an object property of mw.libs
* Empty placeholder defined in mediawiki.js
* Removed the redundant 'mw' argument from the IIFE around mediawiki.libs.jpegmeta.js

* Fixed all usages in /mediawiki/trunk/*
** http://toolserver.org/~krinkle/wikimedia-svn-search/view.php?id=205&hash=ddc0908eef111558816c9fe1c775f7c1

13 years agoAdding or adjusting front-end function and variable documentation per our conventions.
Krinkle [Sun, 29 May 2011 02:54:01 +0000 (02:54 +0000)]
Adding or adjusting front-end function and variable documentation per our conventions.

Also did some trivial clean up, JSHint fixes and performance optimizations while at it. (per http://www.mediawiki.org/wiki/JavaScript_performance )
* Missing semicolons.
* [mediawiki.js Line 540] Unreachable 'registry' after 'throw'.
* [mediawiki.log.js] Checked for window.console but used console.
* Added callback option to mw.util.toggleToc (forwarded to jQuery.fn.slideUp/Down)
* Made mw.log argument more descriptive (logmsg instead of string)
* Using deepEqual(, true) instead of ok() when asserting true. (ok() is like casting a boolean (or a plain if() statement) to verify that something is not falsy)

Added missing test suites for:
* mw.util.toggleToc (follow-up r88732, Dummy check was introduced in r87898)

/me has been infected by Reedy and will be doing more of this tonight.

13 years agoThere is no getThumbRel;
Russ Nelson [Sun, 29 May 2011 01:27:47 +0000 (01:27 +0000)]
There is no getThumbRel;
$wgLocalFileRepo needs to self-identify as local;
the documentation and variable names for FileRepo->append() are correct, but they got positionally swapped at implementation time;
and I am checking in a matching fix to Extension:ResumableUpload in a sec.

13 years agoAdding or adjusting front-end function and variable documentation per our conventions.
Krinkle [Sat, 28 May 2011 22:38:59 +0000 (22:38 +0000)]
Adding or adjusting front-end function and variable documentation per our conventions.
* Adding "return this;" in object constructor functions.
* Added test suites for Map and Message object constructors to match the @return descriptions.

Also did some trivial clean up and performance optimizations while at it. (per http://www.mediawiki.org/wiki/JavaScript_performance )

/me has been infected by Reedy and will be doing more of this tonight.

13 years agoApiBlockTest: delete a block only if it exist
Antoine Musso [Sat, 28 May 2011 21:43:06 +0000 (21:43 +0000)]
ApiBlockTest: delete a block only if it exist

Fix cruise control, follow up r89071

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 28 May 2011 21:32:53 +0000 (21:32 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-05-28 21:01:00 UTC)

13 years agoUse the correct ID when retrieving a block
Antoine Musso [Sat, 28 May 2011 21:25:29 +0000 (21:25 +0000)]
Use the correct ID when retrieving a block

The ID might be different than the one you expect. Since r88755 the tables
are no more dropped and recreated, thus the autoincrement pointer is not
reset.  A previous test could have raised that pointer, thus the id might
be above the expected value.
This patch track the block ID inserted and use it in the assertion.

13 years agoApiBlockTest now remove block it creates
Antoine Musso [Sat, 28 May 2011 21:22:29 +0000 (21:22 +0000)]
ApiBlockTest now remove block it creates

This follow up r88755 that make tests depends on each other. The creation
of a Block through the API is troublesome to the BlockTest suite.

Requires r89070

13 years agoAllow test to remove data from the database
Antoine Musso [Sat, 28 May 2011 21:19:24 +0000 (21:19 +0000)]
Allow test to remove data from the database

This new removeDBData() is run after the tests result. It is similar
to the addDBData() method.

13 years agoAnd even more documentation, the last of this batch
Sam Reed [Sat, 28 May 2011 19:00:01 +0000 (19:00 +0000)]
And even more documentation, the last of this batch

13 years agoAnd even more documentation
Sam Reed [Sat, 28 May 2011 18:59:42 +0000 (18:59 +0000)]
And even more documentation

13 years agoAnd even more documentation
Sam Reed [Sat, 28 May 2011 18:58:51 +0000 (18:58 +0000)]
And even more documentation

13 years agoSome for MaxSem too
Sam Reed [Sat, 28 May 2011 17:52:12 +0000 (17:52 +0000)]
Some for MaxSem too

13 years agoAnd some more....
Sam Reed [Sat, 28 May 2011 17:51:33 +0000 (17:51 +0000)]
And some more....

13 years agoAnd more documentation. Yaaaay
Sam Reed [Sat, 28 May 2011 17:18:50 +0000 (17:18 +0000)]
And more documentation. Yaaaay

13 years agoAnd even mooore
Sam Reed [Sat, 28 May 2011 16:32:09 +0000 (16:32 +0000)]
And even mooore

13 years agoAnd some more parameter documentation!!
Sam Reed [Sat, 28 May 2011 16:31:00 +0000 (16:31 +0000)]
And some more parameter documentation!!

13 years agoNow that Hooks.php contains a class, moved wfRunHooks() definition to GlobalFunctions...
Alexandre Emsenhuber [Sat, 28 May 2011 16:11:40 +0000 (16:11 +0000)]
Now that Hooks.php contains a class, moved wfRunHooks() definition to GlobalFunctions.php and removed its inclusion from Setup.php

13 years agoMore parameter documentation!!
Sam Reed [Sat, 28 May 2011 15:59:57 +0000 (15:59 +0000)]
More parameter documentation!!

13 years agosvn:eol-style native
Alexandre Emsenhuber [Sat, 28 May 2011 15:11:39 +0000 (15:11 +0000)]
svn:eol-style native

13 years agoLoads more documentation for this file.. Hopefully CR will show it all ;)
Sam Reed [Sat, 28 May 2011 14:54:13 +0000 (14:54 +0000)]
Loads more documentation for this file.. Hopefully CR will show it all ;)

13 years agoMore parameter documentation!!
Sam Reed [Sat, 28 May 2011 14:52:55 +0000 (14:52 +0000)]
More parameter documentation!!

13 years agoFix type, follow-up r81615
Krinkle [Sat, 28 May 2011 14:51:07 +0000 (14:51 +0000)]
Fix type, follow-up r81615

13 years agofu r89029 - spelling
Niklas Laxström [Sat, 28 May 2011 13:03:16 +0000 (13:03 +0000)]
fu r89029 - spelling

13 years agoHandle old libxml when extracting SVG metadata
Antoine Musso [Sat, 28 May 2011 09:58:43 +0000 (09:58 +0000)]
Handle old libxml when extracting SVG metadata

Mac OS X 10.5.8 comes with libxml 2.6.16, thus some methods of XMLReader
are not availabe (ex: readInnerXML()).
This patch, throw an error if the above method does not exist (only one
use in our code).

Since metadata can comes as string or an XML fragment, I have split the tests
to take care of the two usages and of the exception.

13 years ago* Fix db->makeList() spacing
Antoine Musso [Sat, 28 May 2011 09:03:44 +0000 (09:03 +0000)]
* Fix db->makeList() spacing
* Tests assertions where upside-down (expected <-> value)
* Tests did not use LIST_AND

Follow up r87992

13 years agoOnly run CleanUpTest on a quarter of the cases.
Antoine Musso [Sat, 28 May 2011 08:38:14 +0000 (08:38 +0000)]
Only run CleanUpTest on a quarter of the cases.

Speed up the testDoubleBytes & testTripleBytes which generates 32k assertions.
The processing took 12 and 18 seconds respectively on my computer, now down
to 8k assertions.

13 years agofollow up r88997 with a rough attempt at a parser test, though, really, we can't...
Mark A. Hershberger [Sat, 28 May 2011 02:09:01 +0000 (02:09 +0000)]
follow up r88997 with a rough attempt at a parser test, though, really, we can't test signature expansion

13 years agoRefactor MessageBlobStore::updateModule() to remove the multi-language update behavio...
Roan Kattouw [Fri, 27 May 2011 22:42:20 +0000 (22:42 +0000)]
Refactor MessageBlobStore::updateModule() to remove the multi-language update behavior. Instead of updating all language's blobs at once, it now only updates the requested language. This, in combination with the bug fixed in r89001, was what caused the UploadWizard timeouts on the cluster

13 years ago* (bug 29174) Fix regression in upload-by-URL: files larger than PHP memory limit...
Brion Vibber [Fri, 27 May 2011 22:31:48 +0000 (22:31 +0000)]
* (bug 29174) Fix regression in upload-by-URL: files larger than PHP memory limit work again

r65152 switched upload-by-URL ($wgAllowCopyUploads) to use Http / MwHttpRequest class instead of CURL directly.
While this is mostly nice, it switched from saving large files directly to a temp file to buffering them in memory, causing large files to fail when they hit the PHP memory limit.

Fix uses MwHttpRequest's callback capability to override the read handler; now appending it to the temporary file as we go, and can confirm that largish files work again; was able to upload a 64mb .ogv that previously didn't work for me: http://prototype.wikimedia.org/tmh/images/b/b2/File-Arborophila_brunneopectus_pair_feeding_-_Kaeng_Krachan.ogv

Also expanded the documentation on MwHttpRequest::setCallback to clarify the function parameters and return value for the callback (which currently matches the low-level CURL handler's callback directly).
Note that the non-CURL implementation doesn't abort the read if the callback doesn't return the expected number of bytes, but this is an immediate fatal end of request on the Curl backend. May want further cleanup.

13 years agoFix issue on the live site causing RL requests for ext.uploadWizard to consistently...
Roan Kattouw [Fri, 27 May 2011 22:09:22 +0000 (22:09 +0000)]
Fix issue on the live site causing RL requests for ext.uploadWizard to consistently take more than 5 seconds: the cache freshness check was failing all the time because ext.uploadWizard listed some messages twice, and duplicates were filtered on the left-hand side of the !== comparison (implicitly, because they're array keys), but not on the right-hand side.

13 years agoFix failing preprocessor tests by checking if ot is set.
Mark A. Hershberger [Fri, 27 May 2011 21:43:07 +0000 (21:43 +0000)]
Fix failing preprocessor tests by checking if ot is set.

13 years agofix for Bug #93 “tilde signatures inside nowiki tags sometimes get expanded (<include...
Mark A. Hershberger [Fri, 27 May 2011 20:55:02 +0000 (20:55 +0000)]
fix for Bug #93 “tilde signatures inside nowiki tags sometimes get expanded (<includeonly><nowiki>~~~~</nowiki></includeonly>)”
Patch from Brad Jorsch

Fix for includeonly case.  Hopefully fixing this ancient bug doesn't
‘cause people to cry