lhc/web/wiklou.git
13 years agoRemove useless bootstrap inclusions
Chad Horohoe [Fri, 3 Jun 2011 04:25:21 +0000 (04:25 +0000)]
Remove useless bootstrap inclusions

13 years agoFix for r85229: getOutput() instead of getOut(), leftover $wgOut usage.
Chad Horohoe [Fri, 3 Jun 2011 04:22:14 +0000 (04:22 +0000)]
Fix for r85229: getOutput() instead of getOut(), leftover $wgOut usage.

13 years agoApply a patch adapted from the one on Bug #16794
Mark A. Hershberger [Fri, 3 Jun 2011 04:10:33 +0000 (04:10 +0000)]
Apply a patch adapted from the one on Bug #16794

    This patch should allow you to use the $wgSharedDB [with Postgres]
    normally, as you would with mysql. Basically this patch creates a
    second connection with the shared database and when a query is
    made, we check on which connection we should send it.

Patch from Luca Fulchir

13 years agoMissing ,
Chad Horohoe [Fri, 3 Jun 2011 04:05:04 +0000 (04:05 +0000)]
Missing ,

13 years agoAdd Maintenance and FakeMaintenance to the autoloader for paranoia
Chad Horohoe [Fri, 3 Jun 2011 03:59:27 +0000 (03:59 +0000)]
Add Maintenance and FakeMaintenance to the autoloader for paranoia

13 years agoforward port r88929
Mark A. Hershberger [Fri, 3 Jun 2011 03:41:11 +0000 (03:41 +0000)]
forward port r88929

13 years agoKill $wgWikiFarm. Only use in a wmf code path, and I can't find any evidence of this...
Chad Horohoe [Fri, 3 Jun 2011 03:38:52 +0000 (03:38 +0000)]
Kill $wgWikiFarm. Only use in a wmf code path, and I can't find any evidence of this being use in WMF anywhere.

13 years agoFix for r89166: need self
Chad Horohoe [Fri, 3 Jun 2011 03:36:36 +0000 (03:36 +0000)]
Fix for r89166: need self

13 years agoMove fixes for config-error-box to mw-infobox in order to apply for warnings as well...
Krinkle [Fri, 3 Jun 2011 02:26:31 +0000 (02:26 +0000)]
Move fixes for config-error-box to mw-infobox in order to apply for warnings as well. And removed redundant clear: left. Poke r88465, 86060, r88109

13 years agoFix for bug #28172 (“wfGetDB called when it shouldn't be”).
Mark A. Hershberger [Fri, 3 Jun 2011 01:06:07 +0000 (01:06 +0000)]
Fix for bug #28172 (“wfGetDB called when it shouldn't be”).

forward ported from r88936 and r89374.

13 years agotypo from r78201
Krinkle [Fri, 3 Jun 2011 01:04:24 +0000 (01:04 +0000)]
typo from r78201

13 years ago* fixed table duplication for phpunit testing
Jure Kajzer [Thu, 2 Jun 2011 22:23:05 +0000 (22:23 +0000)]
* fixed table duplication for phpunit testing

13 years agoRevert r88648 per CR
Chad Horohoe [Thu, 2 Jun 2011 20:15:00 +0000 (20:15 +0000)]
Revert r88648 per CR

13 years agow/s changes.
Mark A. Hershberger [Thu, 2 Jun 2011 19:32:45 +0000 (19:32 +0000)]
w/s changes.

13 years agoFollowup r89348
Sam Reed [Thu, 2 Jun 2011 18:39:55 +0000 (18:39 +0000)]
Followup r89348

Fix code style, and remove hint that variable may be multi

13 years agoDon't duplicate tables starting with unittest_ which can be left if a previous run...
Max Semenik [Thu, 2 Jun 2011 17:58:34 +0000 (17:58 +0000)]
Don't duplicate tables starting with unittest_ which can be left if a previous run ended with a fatal on SQLite

13 years agofollow up r88502 with a fix to resource loader to restore tochidden
Mark A. Hershberger [Thu, 2 Jun 2011 16:38:55 +0000 (16:38 +0000)]
follow up r88502 with a fix to resource loader to restore tochidden
removal addition.

13 years agoRevert r88722 (allow multiple values for letype): this won't play nice with query...
Roan Kattouw [Thu, 2 Jun 2011 16:13:42 +0000 (16:13 +0000)]
Revert r88722 (allow multiple values for letype): this won't play nice with query indexing

13 years agoFix for r89263: this to $this
Platonides [Thu, 2 Jun 2011 16:10:48 +0000 (16:10 +0000)]
Fix for r89263: this to $this

13 years agoRevert r88502 since this can be done with a gadget
Mark A. Hershberger [Thu, 2 Jun 2011 16:02:04 +0000 (16:02 +0000)]
Revert r88502 since this can be done with a gadget

13 years agoFix regression in r84638, causing ArticleDeleteComplete to be called twice on file...
Roan Kattouw [Thu, 2 Jun 2011 15:42:23 +0000 (15:42 +0000)]
Fix regression in r84638, causing ArticleDeleteComplete to be called twice on file deletions. doDeleteArticle() already calls it, there's no need for FileDeleteForm::doDelete() to call it again

13 years agoClose wfProfileIn
Platonides [Thu, 2 Jun 2011 15:39:24 +0000 (15:39 +0000)]
Close wfProfileIn
Exit point missed by r85204

13 years agoadded @ßince tag
Jeroen De Dauw [Thu, 2 Jun 2011 14:38:14 +0000 (14:38 +0000)]
added @ßince tag

13 years agoAdd Debug hook as a new feature of 1.19
Antoine Musso [Thu, 2 Jun 2011 14:17:00 +0000 (14:17 +0000)]
Add Debug hook as a new feature of 1.19

Release notes were not updated by r88843

13 years agoproperly move the jpegmeta.js file from util to libs.
Antoine Musso [Thu, 2 Jun 2011 13:44:27 +0000 (13:44 +0000)]
properly move the jpegmeta.js file from util to libs.

Follow up r89083 (code change)
Fix r89084 (file move without history, reverted by r89334)

13 years agorevert r89084 (file moved without keeping history)
Antoine Musso [Thu, 2 Jun 2011 13:40:05 +0000 (13:40 +0000)]
revert r89084 (file moved without keeping history)

13 years agoFix encoding (followup r89330)
Robin Pepermans [Thu, 2 Jun 2011 13:23:21 +0000 (13:23 +0000)]
Fix encoding (followup r89330)

13 years agoFollow-up to r89329: Add MessagesRoa_rup.php as fallback to 'rup'
Robin Pepermans [Thu, 2 Jun 2011 13:14:16 +0000 (13:14 +0000)]
Follow-up to r89329: Add MessagesRoa_rup.php as fallback to 'rup'

13 years agoRenaming 'roa-rup' to 'rup' (see also bug 15988), and adding 'roa-rup' to $wgDummyLan...
Robin Pepermans [Thu, 2 Jun 2011 13:10:06 +0000 (13:10 +0000)]
Renaming 'roa-rup' to 'rup' (see also bug 15988), and adding 'roa-rup' to $wgDummyLanguageCodes. I'm going to add MessagesRoa_rup.php as fallback, and update extension translations as well.

13 years agoRemoved useless call to wfLogProfilingData() since profiling is disabled in command...
Alexandre Emsenhuber [Thu, 2 Jun 2011 08:18:52 +0000 (08:18 +0000)]
Removed useless call to wfLogProfilingData() since profiling is disabled in command-line mode

13 years agoRemoved obsolete comment that was mentioning $wgInputEncoding and $wgOutputEncoding
Alexandre Emsenhuber [Thu, 2 Jun 2011 08:17:12 +0000 (08:17 +0000)]
Removed obsolete comment that was mentioning $wgInputEncoding and $wgOutputEncoding

13 years agoExplored some ideas for HipHop optimisation. Made a preprocessor implementation,...
Tim Starling [Thu, 2 Jun 2011 02:44:33 +0000 (02:44 +0000)]
Explored some ideas for HipHop optimisation. Made a preprocessor implementation, based on a copy of Preprocessor_Hash, with a preprocessToObj() which is optimised. It takes 33% less time than Preprocessor_Hash for a certain realistic test case (the Barack Obama article). Some notes about what I did:
* Set EnableHipHopSyntax=true to enable string and integer type hints. I gave the file a .hphp extension to avoid false alarms in syntax checking scripts.
* Made sure almost all the local variables in preprocessToObj() have a specific type, instead of being variants. This is useful for integers, but has the largest impact for objects, since dynamic method calls can be avoided.
* Stopped using extract() since it forces all local variables to be variants, and adds some hashtable initialisation overhead.
* Found a way to cast a variant to a specific object class, by abusing argument type hinting. The method does not require special syntax; it is harmless in Zend PHP.
* Wrapped various internal function calls with type casts. strspn() and substr() need to be wrapped with intval() and strval() respectively, since they return a variant to support special error return values. HipHop isn't smart enough to know whether the error case will be triggered.
* Replaced most instances of double-equals with triple-equals. Profiling indicates that this makes a very large difference when comparing strings, much more so than in Zend.

13 years agoFollowup r89311: rv unrelated changes
Chad Horohoe [Thu, 2 Jun 2011 01:28:30 +0000 (01:28 +0000)]
Followup r89311: rv unrelated changes

13 years agoMake user right selection in installer actually work, thanks Krinkle for spotting...
Chad Horohoe [Thu, 2 Jun 2011 01:26:26 +0000 (01:26 +0000)]
Make user right selection in installer actually work, thanks Krinkle for spotting this

13 years agoRevert r88997: fix for bug 93 caused some additional problems.
Brion Vibber [Thu, 2 Jun 2011 00:32:43 +0000 (00:32 +0000)]
Revert r88997: fix for bug 93 caused some additional problems.
Follow-up to r89191: disable test case for bug 93 as it currently fails (bug left open).

13 years agoSelf-revert r87545
Chad Horohoe [Thu, 2 Jun 2011 00:11:38 +0000 (00:11 +0000)]
Self-revert r87545

13 years agoMostly revert r89302, was slower than the original
Chad Horohoe [Wed, 1 Jun 2011 23:17:29 +0000 (23:17 +0000)]
Mostly revert r89302, was slower than the original

13 years agoExclude Block tests until somebody fixes them, also cache listTables() result so...
Chad Horohoe [Wed, 1 Jun 2011 22:54:33 +0000 (22:54 +0000)]
Exclude Block tests until somebody fixes them, also cache listTables() result so we can skip some queries

13 years agoTest db cleanup
Chad Horohoe [Wed, 1 Jun 2011 22:43:19 +0000 (22:43 +0000)]
Test db cleanup
* Fix Oracle stuff per CR on r88755
* Don't expect tests to clean up after themselves, do it in MediaWikiTestCase::run() (skipping user and interwiki, also per CR)
** Also don't do it from the destructor, phpunit calls this more often than you'd think
* Need to find: way to detect "is this the last test?" so we can drop our tables on completion

13 years agoAdd some doc comments on Cookie::validateCookieDomain() and Http::isValidUri(), which...
Brion Vibber [Wed, 1 Jun 2011 22:35:03 +0000 (22:35 +0000)]
Add some doc comments on Cookie::validateCookieDomain() and Http::isValidUri(), which both have some failing test cases and are incomplete

13 years agoAdd more super-cookie test cases to HttpTest; things like org & .org aren't being...
Brion Vibber [Wed, 1 Jun 2011 22:27:24 +0000 (22:27 +0000)]
Add more super-cookie test cases to HttpTest; things like org & .org aren't being handled correctly either. Not super high prio but... should probably mark these tests broken if can't be fixed easily yet.

13 years agoRefactor validateCookieDomain test cases to use a data provider and report which...
Brion Vibber [Wed, 1 Jun 2011 22:13:47 +0000 (22:13 +0000)]
Refactor validateCookieDomain test cases to use a data provider and report which bit's being tested so we can identify failures (there is still one failure in this set)

13 years agoNot silly, but parser error (r89263)... fixing
Platonides [Wed, 1 Jun 2011 22:04:44 +0000 (22:04 +0000)]
Not silly, but parser error (r89263)... fixing
PHP Parse error:  syntax error, unexpected T_STRING, expecting T_VARIABLE in ExtensionUpdater.php on line 7

13 years ago'unblockself' right was never added to User::$mCoreRights
Sam Reed [Wed, 1 Jun 2011 21:44:16 +0000 (21:44 +0000)]
'unblockself' right was never added to User::$mCoreRights

Noticed while poking bug 27514

13 years agoTweak HttpTest following r89278:
Brion Vibber [Wed, 1 Jun 2011 21:25:45 +0000 (21:25 +0000)]
Tweak HttpTest following r89278:
* remove FTP test case URL (shouldn't actually work, and as a directory listing, not super stable)
* remove old test case URLs that are now 30x redirects (example.com and a toolserver link), which broke the comparison tests
* added in http://en.wikipedia.org/robots.txt so we've got a nice basic fetch on one of our servers too

Now this test class is down to 3 failures, in URL & domain validation stuff

13 years agoDocument r89248,r89249 isQueryStringBad()
Platonides [Wed, 1 Jun 2011 21:22:53 +0000 (21:22 +0000)]
Document r89248,r89249 isQueryStringBad()

13 years agoHttpTest regression fix: test URL on example.com no longer returns a 404 (now a 302...
Brion Vibber [Wed, 1 Jun 2011 21:13:13 +0000 (21:13 +0000)]
HttpTest regression fix: test URL on example.com no longer returns a 404 (now a 302 redirect), so switching the 404 tests to use an URL on mediawiki.org in the /xml/ dir where we stash actual files.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 1 Jun 2011 20:23:50 +0000 (20:23 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-01 20:12:00 UTC)

13 years agoFix Bug #29231: PhpHttpRequest doesn't support HTTPS
Mark A. Hershberger [Wed, 1 Jun 2011 18:57:33 +0000 (18:57 +0000)]
Fix Bug #29231: PhpHttpRequest doesn't support HTTPS

Tested fix with PHPUnit Tests that aren't currently executed by
CruiseControl b/c they're marked “broken” till someone comes up with
some reasonable unit tests that will work for everyone.

13 years agoAdd some documentation
Sam Reed [Wed, 1 Jun 2011 16:40:59 +0000 (16:40 +0000)]
Add some documentation

Swap if ( $foo ) { $this->addFields( 'foo' ); } for $this->addFieldsIf( 'foo', $foo ); etc

Also swap $this->addFieldsIf( 'foo', $foo ); $this->addFieldsIf( 'foo2', $foo ); for $this->addFieldsIf( array( 'foo', 'foo2' ), $foo );

Micro-optimisation and readability!

13 years agoRemove some unused variables, add/improve some documentation
Sam Reed [Wed, 1 Jun 2011 16:27:46 +0000 (16:27 +0000)]
Remove some unused variables, add/improve some documentation

13 years ago* (bug 29221) Expose oldrevid in watchlist output
Sam Reed [Wed, 1 Jun 2011 16:26:56 +0000 (16:26 +0000)]
* (bug 29221) Expose oldrevid in watchlist output

13 years ago* suggestion for ExtensionUpdater that would handle DB install/update of extension...
Jure Kajzer [Wed, 1 Jun 2011 15:15:24 +0000 (15:15 +0000)]
* suggestion for ExtensionUpdater that would handle DB install/update of extension from DatabaseUpdater
* could also generate default code for LocalSettingsGenerator
* revert if silly :D

13 years ago* used Html static functions instead og Xml. (r89260#c17418)
Jure Kajzer [Wed, 1 Jun 2011 14:18:12 +0000 (14:18 +0000)]
* used Html static functions instead og Xml. (r89260#c17418)

13 years agoWhitespace updates.
Siebrand Mazeland [Wed, 1 Jun 2011 14:12:53 +0000 (14:12 +0000)]
Whitespace updates.

13 years ago* moved infobox to Html (r88109#c16937)
Jure Kajzer [Wed, 1 Jun 2011 13:57:50 +0000 (13:57 +0000)]
* moved infobox to Html (r88109#c16937)

13 years ago(bug 29224) Also use a packed modules string for the startup modules (usually there...
Roan Kattouw [Wed, 1 Jun 2011 13:51:50 +0000 (13:51 +0000)]
(bug 29224) Also use a packed modules string for the startup modules (usually there's only one, but there's a hook to add more)

13 years ago* trying to create a way to update/install extension already included in the LocalSet...
Jure Kajzer [Wed, 1 Jun 2011 13:43:38 +0000 (13:43 +0000)]
* trying to create a way to update/install extension already included in the LocalSettings.php
* wgHooks and wgAutoloadClasses are initialized so they can be appended within extension inits

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