Aryeh Gregor [Mon, 8 Feb 2010 20:15:32 +0000 (20:15 +0000)]
Strip # from IDs, IE doesn't seem to like them
Aryeh Gregor [Mon, 8 Feb 2010 20:05:17 +0000 (20:05 +0000)]
Unescape entities for prettier/more consistent IDs
Only affects $wgExperimentalHtmlIds = true.
Aryeh Gregor [Mon, 8 Feb 2010 20:05:06 +0000 (20:05 +0000)]
Whitespace
Raimond Spekking [Mon, 8 Feb 2010 19:54:26 +0000 (19:54 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-08 19:30 UTC)
Aryeh Gregor [Mon, 8 Feb 2010 18:54:08 +0000 (18:54 +0000)]
Use consistent case when calling functions
Tim Starling [Mon, 8 Feb 2010 13:01:30 +0000 (13:01 +0000)]
Fixed a bug which came up during testing, world-destruction thus averted.
Tim Starling [Mon, 8 Feb 2010 12:36:20 +0000 (12:36 +0000)]
Fix script for bug 20757.
Chad Horohoe [Mon, 8 Feb 2010 11:30:17 +0000 (11:30 +0000)]
Cleanup r62111, don't pass by reference
Tim Starling [Mon, 8 Feb 2010 07:01:46 +0000 (07:01 +0000)]
Initial fix for bug 20757. Committing for test on server.
Mark A. Hershberger [Mon, 8 Feb 2010 05:38:09 +0000 (05:38 +0000)]
Add a bunch of tests and checks for cookie domain security.
Andrew Garrett [Mon, 8 Feb 2010 04:49:34 +0000 (04:49 +0000)]
Make a few more protected functions public, so they can be called from hooks
Conrad Irwin [Mon, 8 Feb 2010 02:07:15 +0000 (02:07 +0000)]
partial revert for r62081. Make {{PIPETRICK}} like {{PAGENAME}}, add {{PIPETRICKE}}. fix r62077 better.
Raimond Spekking [Sun, 7 Feb 2010 20:49:40 +0000 (20:49 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-07 20:30 UTC)
Jack Phoenix [Sun, 7 Feb 2010 19:31:24 +0000 (19:31 +0000)]
coding style tweaks, marked public functions as such
Jack Phoenix [Sun, 7 Feb 2010 19:24:43 +0000 (19:24 +0000)]
cleanup to CologneBlue.php, Nostalgia.php and Standard.php
Jack Phoenix [Sun, 7 Feb 2010 19:19:32 +0000 (19:19 +0000)]
delete Skin.sample: old and hardly helpful file; even MediaWiki.org's outdated docs on how to write a new skin are better than this
Platonides [Sun, 7 Feb 2010 18:39:26 +0000 (18:39 +0000)]
file_get_contents -> Http::get per ^demon
Aryeh Gregor [Sun, 7 Feb 2010 17:38:46 +0000 (17:38 +0000)]
Adjust wording of r62052
The "and" seems out of place to me.
Alexandre Emsenhuber [Sun, 7 Feb 2010 17:03:51 +0000 (17:03 +0000)]
* Fix some doxygen warnings
* Document a bit
Alexandre Emsenhuber [Sun, 7 Feb 2010 16:42:50 +0000 (16:42 +0000)]
* Modified MediaWiki_Setup to use the normal mechanism to get a database connection
* Include commandLine.inc from bootstrap.php to get admin credentials
* Marked SearchEngineTest as stub and exclude it
Platonides [Sun, 7 Feb 2010 16:26:17 +0000 (16:26 +0000)]
Fix at least the url and entities.
Platonides [Sun, 7 Feb 2010 16:10:14 +0000 (16:10 +0000)]
Applied and tweaked smart-import patch from Mij, merging with 1.16.
This adds --source-wiki-url parameter to importImages.php for a wiki
from which to fetch the original uploader and comment.
Useful when going from local uploads to a shared repository.
Original code at http://www.howtopedia.org/public/mw-smart-import.tbz
"I release it with the least restrictive license applicable,
considering the code is derivative work of the respective
maintenance scripts from the MW distribution.
Feel free to commit this or modifications of it to your repos."
http://lists.wikimedia.org/pipermail/mediawiki-l/2010-February/033230.html
Conrad Irwin [Sun, 7 Feb 2010 14:50:55 +0000 (14:50 +0000)]
Fix bug 20339 allow pipe-trick in log reasons
follows on from r62069 moving logic from Parser into Linker
(copying brion's technique for dealing with subpages)
Conrad Irwin [Sun, 7 Feb 2010 13:17:05 +0000 (13:17 +0000)]
Fixes for r62077
{{pipetrick:}} -> {{#pipetrick:}} per IAlex
clearer documentation per Siebrand
parser test for new magic word.
Conrad Irwin [Sun, 7 Feb 2010 11:59:58 +0000 (11:59 +0000)]
Initialize parser properly in getTransclusionText()
Mark A. Hershberger [Sun, 7 Feb 2010 05:45:37 +0000 (05:45 +0000)]
Test cases working with “make tap” but not just “phpunit” right now.
“make tap” spawns a new php instance for each test file.
Found some problems with date/time parsing on older 32bit php. I
forgot the year 2999 isn't a valid epoch date.
Conrad Irwin [Sun, 7 Feb 2010 02:36:32 +0000 (02:36 +0000)]
Bug 7264 - Magic word to give Page Title as if pipe-trick performed on it {{pipetrick:}}
Conrad Irwin [Sun, 7 Feb 2010 02:15:26 +0000 (02:15 +0000)]
Update Pipe Trick semantics per bug 845 and bug 21660
Allows fullwidth variants of "(", ")", and "," everywhere
Adds [[#section|]] -> [[#section|section]] (initial # only)
Adds [[/sub/section|]] -> [[/sub/section|section]]
Raimond Spekking [Sat, 6 Feb 2010 19:39:53 +0000 (19:39 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-06 19:15 UTC)
Ævar Arnfjörð Bjarmason [Sat, 6 Feb 2010 16:20:30 +0000 (16:20 +0000)]
Make 'make tap' the default target and add a 'make phpunit' target to
run things with phpunit.
phpunit as-is consumed up to 800MB of memory on PHP 5.2.12. Running it
also results in test failures for LanguageConverterTest.php which is
tripping over some setup code a previous test made.
The TAP target also runs in ~15 seconds on my machine, whereas I have
to kill phpunit after 8 minutes of running tests & eating my memory.
Ævar Arnfjörð Bjarmason [Sat, 6 Feb 2010 15:57:51 +0000 (15:57 +0000)]
Add a `make tap' target which runs the tests with `prove' and `phpunit --tap'
Also rename files so that all *Test*.php files are real test cases and
not just skeletons used for setup, those are now called *Setup*.php.
Niklas Laxström [Sat, 6 Feb 2010 15:37:43 +0000 (15:37 +0000)]
Fix syntax error in r62063
Conrad Irwin [Sat, 6 Feb 2010 15:00:45 +0000 (15:00 +0000)]
Allow pipe trick to work after PST.
Fixes bug 4099, bug 8785, partially bug 16714, bug 2700.
Alexandre Emsenhuber [Sat, 6 Feb 2010 14:29:37 +0000 (14:29 +0000)]
Use $wgUseNormalUser only in commandLine.inc (and use getDbType() instead in Maintenance)
Shinjiman [Sat, 6 Feb 2010 14:12:23 +0000 (14:12 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
Ævar Arnfjörð Bjarmason [Sat, 6 Feb 2010 01:50:30 +0000 (01:50 +0000)]
Fix regression introduced in r30117: Don's sort() the author list in
Special:Version
When extensions specify a list of authors they expect them to appear
in Special:Version as they're specified. Sorting lists on
Special:Version as introduced in r30117 makes sense for things like
the names of parser functions, but not authors.
Some extensions give arrays like array("foo", "bar", "others") and
expect output like "foo, bar and others". Sometimes (like in the case
of Maps.php) this would only incidentally work.
Furthermore in some cases the first author in the array indicates the
primary author, this is the case with CheckUser.php and other similar
extensions with multiple authors.
Ævar Arnfjörð Bjarmason [Sat, 6 Feb 2010 00:03:22 +0000 (00:03 +0000)]
Add note about how you can skip the update countdown with --quick
Conrad Irwin [Fri, 5 Feb 2010 21:52:37 +0000 (21:52 +0000)]
style fixes for r62035
Raimond Spekking [Fri, 5 Feb 2010 20:50:12 +0000 (20:50 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-05 20:30 UTC)
Alexandre Emsenhuber [Fri, 5 Feb 2010 18:28:40 +0000 (18:28 +0000)]
Fix doxygen warnings
Conrad Irwin [Fri, 5 Feb 2010 16:49:21 +0000 (16:49 +0000)]
bug 5210 - add getTransclusionText() to the Parser to remove the horrible (and
very broken) attempt to reimplement bits of the preprocessor in
EditPage.php.
Adam Miller [Fri, 5 Feb 2010 15:29:07 +0000 (15:29 +0000)]
Fix for RTL weirdness in IE7 reported in bug 22387, and some uncommitted RTL changes to one of our experimental babaco color stylesheets
Alexandre Emsenhuber [Fri, 5 Feb 2010 15:10:43 +0000 (15:10 +0000)]
Removed colum names from WHERE clause so that it doesn't break for wiki having tables prefix
Alexandre Emsenhuber [Fri, 5 Feb 2010 15:01:07 +0000 (15:01 +0000)]
Follow-up r56441: the cancel link now links to the correct version even on preview
Alexandre Emsenhuber [Fri, 5 Feb 2010 14:07:18 +0000 (14:07 +0000)]
* (bug 22364) Setting $wgUseExternalEditor to false no longer hides the reupload link from file pages
Raimond Spekking [Fri, 5 Feb 2010 13:43:14 +0000 (13:43 +0000)]
Fix tabindex for summaryfield. The textbox area has tabindex 1 already.
Rotem Liss [Fri, 5 Feb 2010 13:08:33 +0000 (13:08 +0000)]
Localization update for he.
OverlordQ [Fri, 5 Feb 2010 05:40:50 +0000 (05:40 +0000)]
Force new connection to database, fixes bug 20475, might have unforseen consequences
Tim Starling [Fri, 5 Feb 2010 04:40:57 +0000 (04:40 +0000)]
Fix for r61957: initialise array variables explicitly.
Mark A. Hershberger [Fri, 5 Feb 2010 04:33:26 +0000 (04:33 +0000)]
follow up r61911 - put periods in where appropriate
Mark A. Hershberger [Fri, 5 Feb 2010 04:25:30 +0000 (04:25 +0000)]
Random whitespace cleanup
Mark A. Hershberger [Fri, 5 Feb 2010 04:08:19 +0000 (04:08 +0000)]
Add domain checking to HTTP cookie checking.
Mark A. Hershberger [Fri, 5 Feb 2010 04:01:15 +0000 (04:01 +0000)]
PHPUnit now sees individual parser tests as separate tests. This
involved changing parserTests.inc slightly to create an iterator that
reads parserTests.txt — separating the reading of the file from the
execution of the tests.
PHPUnit still doesn't see individual assertions, but that is less
important right now.
Tested maintenance/parserTests.php against maintenance/parserTests.txt
and extensions/Cite/citeParserTests.txt to verify that the parser tests
still worked as expected.
Tim Starling [Fri, 5 Feb 2010 03:36:04 +0000 (03:36 +0000)]
* (bug 21551) Rewrote the Squid purge HTTP client to provide a more robust and general implementation of HTTP, allowing it to purge non-Squid caches such as Varnish. Tested against Squid (keep-alive on or off), Varnish, various kinds of network error, benchmarked at ~3k req/s.
* Reverted what was left of r59178
* Removed $wgDebugSquid, didn't do anything anyway
Aryeh Gregor [Fri, 5 Feb 2010 02:36:18 +0000 (02:36 +0000)]
Remove extra space in <html> from version="" stuff
Aryeh Gregor [Fri, 5 Feb 2010 02:12:01 +0000 (02:12 +0000)]
Use HTML instead of EOT to delimit heredocs
This makes vim highlight the fragment as HTML.
Alexandre Emsenhuber [Thu, 4 Feb 2010 21:07:48 +0000 (21:07 +0000)]
Per Tim, fix r59949: use CSS padding (margin doesn't seem to work on Firefox and Safari) instead of fake empty columns, also added text-align:center
Raimond Spekking [Thu, 4 Feb 2010 19:57:47 +0000 (19:57 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-05 19:00 UTC)
Aryeh Gregor [Thu, 4 Feb 2010 19:01:34 +0000 (19:01 +0000)]
Disable RDFa/microdata by default
It's not clear we want these as an input format, per wikitech-l
discussion. We don't want to allow them if we're not sure, because once
we allow them we can't disable them without breaking things.
Sam Reed [Thu, 4 Feb 2010 18:12:01 +0000 (18:12 +0000)]
array_flip() as per r61760#c5615 (follow up to r61760)
Alexandre Emsenhuber [Thu, 4 Feb 2010 17:57:40 +0000 (17:57 +0000)]
* Port maintenance/cdb-test.php to PHPUnit
* Reduced entries from 100000 to 1000 so that the test doesn't need hours to complete :)
Chad Horohoe [Thu, 4 Feb 2010 14:55:53 +0000 (14:55 +0000)]
Followup r61957, define $index
Chad Horohoe [Thu, 4 Feb 2010 14:42:37 +0000 (14:42 +0000)]
Add missing }
Aaron Schulz [Thu, 4 Feb 2010 10:39:24 +0000 (10:39 +0000)]
* Added Id to "deleted only" check to make label work
* Broke some super long lines
Tim Starling [Wed, 3 Feb 2010 23:30:19 +0000 (23:30 +0000)]
Fix for r58399 (missing index on change_tag table), using the patch from bug 22032 by Gurch, but altered to respect $wgOldChangeTagsIndex.
Alexandre Emsenhuber [Wed, 3 Feb 2010 20:44:05 +0000 (20:44 +0000)]
move ArticleTest to RevisionTest (as it was in t/) since were only testing revision stuff
Max Semenik [Wed, 3 Feb 2010 19:55:56 +0000 (19:55 +0000)]
DatabaseSqlite: avoid fatals with non-zero $failFunction
Max Semenik [Wed, 3 Feb 2010 19:36:04 +0000 (19:36 +0000)]
killed trailing ?>
Max Semenik [Wed, 3 Feb 2010 19:30:36 +0000 (19:30 +0000)]
rm superfuluous requires from tests
Raimond Spekking [Wed, 3 Feb 2010 19:28:17 +0000 (19:28 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-03 19:00 UTC)
Max Semenik [Wed, 3 Feb 2010 19:21:37 +0000 (19:21 +0000)]
Moved tests to maintenance - one directory less to care about when configuring access.
Alexandre Emsenhuber [Wed, 3 Feb 2010 19:09:14 +0000 (19:09 +0000)]
Follow-up r61938: also port SearchUpdate test
Alexandre Emsenhuber [Wed, 3 Feb 2010 18:07:26 +0000 (18:07 +0000)]
Follow-up r61940: delete Makefile too
Chad Horohoe [Wed, 3 Feb 2010 17:59:25 +0000 (17:59 +0000)]
Revert unrelated (and unworking) change from r61940)
Chad Horohoe [Wed, 3 Feb 2010 17:57:52 +0000 (17:57 +0000)]
Last tests were ported in r61938 or are otherwise unused, deleting /t and unifying unit tests once and for all
Alexandre Emsenhuber [Wed, 3 Feb 2010 17:35:59 +0000 (17:35 +0000)]
* Port tests from t/inc/
* Added new tests to XmlTest
Mark A. Hershberger [Wed, 3 Feb 2010 16:29:09 +0000 (16:29 +0000)]
follow up 61907 remove 5.0 bug check
Mark A. Hershberger [Wed, 3 Feb 2010 16:27:04 +0000 (16:27 +0000)]
follow-up r61917 - stylize for coding conventions
Siebrand Mazeland [Wed, 3 Feb 2010 15:57:54 +0000 (15:57 +0000)]
Follow-up r61055: prevent "\n" appearing as text.
Chad Horohoe [Wed, 3 Feb 2010 14:58:44 +0000 (14:58 +0000)]
Starting to phase out /t in favor of /tests, so removing things already covered by the latter (or otherwise unneeded). People prefer PHPUnit, according to cabal-like IRC polling and previous discussions elsewhere
Alexandre Emsenhuber [Wed, 3 Feb 2010 13:33:13 +0000 (13:33 +0000)]
Catch the case when allow_url_fopen=false
Chad Horohoe [Wed, 3 Feb 2010 13:32:44 +0000 (13:32 +0000)]
Port IP tests to PHPUnit format
Alexandre Emsenhuber [Wed, 3 Feb 2010 13:05:00 +0000 (13:05 +0000)]
Added tests for SiteConfiguration ($wgConf)
Roan Kattouw [Wed, 3 Feb 2010 10:48:11 +0000 (10:48 +0000)]
Use wfAppendQuery() instead of "$path?$wgStyleVersion" where $path can contain ?foo=bar&bar=baz . This fixes the bug where MediaWiki:Monobook.js was included on every page and the JS variable skin was always set to 'monobook'; this happened because of &useskin=vector?265
OverlordQ [Wed, 3 Feb 2010 08:53:43 +0000 (08:53 +0000)]
Followup to r61912, make sure hight is actually given, also dont ignore if upright is specified
Mark A. Hershberger [Wed, 3 Feb 2010 07:45:05 +0000 (07:45 +0000)]
Add preliminary API tests. Next step: UploadChunks API testing.
Tim Starling [Wed, 3 Feb 2010 07:39:32 +0000 (07:39 +0000)]
Revert r58025 (User::newFromName() returns WikiError under certain circumstances). Incomplete, breaks lots of things, see CR.
Siebrand Mazeland [Wed, 3 Feb 2010 07:38:57 +0000 (07:38 +0000)]
Follow-up r61911: rebuild MessagesEn.php
Tim Starling [Wed, 3 Feb 2010 07:10:58 +0000 (07:10 +0000)]
* Fix for r57997 and bug 21222: move math, gallery, pre and nowiki to a new module called CoreTagHooks, analogous to CoreParserFunctions.
* Extended the return interface for tag hooks in a way analogous to the one for parser functions, allowing <nowiki> and <html> to specify that they want to be in the nowiki replacement array instead of the general replacement array.
* Removed ParserOptions::setUseTeX() and related. If <math> is going to be registered in firstCallInit(), then it needs to be stable across multiple parser calls and not change based on parser options. Only one extension caller.
In parserTests.inc:
* Fixed parser test failures due to $wgMathDirectory not being properly set up. The math directory of the host wiki was being used, leading to a parser test failure if it was not writable.
* Fixed message cache hack from r15502. Made parser tests not fail in the case where a tested message is overwritten by the local wiki. All tests now pass on my installation.
OverlordQ [Wed, 3 Feb 2010 06:21:25 +0000 (06:21 +0000)]
Fix for not being able to override thumbnail height
Mark A. Hershberger [Wed, 3 Feb 2010 06:19:47 +0000 (06:19 +0000)]
follow-up r61655 fill out the rest of the missing messages
Add cookie handling to HttpFunctions.
Tim Starling [Wed, 3 Feb 2010 05:42:31 +0000 (05:42 +0000)]
Followup to r61905: remove parser tests for ex-feature.
Mark A. Hershberger [Wed, 3 Feb 2010 05:32:32 +0000 (05:32 +0000)]
Bump minimum supported version to 5.1.0
Tim Starling [Wed, 3 Feb 2010 05:07:57 +0000 (05:07 +0000)]
Remove <a> tag hook for now, pending resolution of implementation issues as discussed on CR r58717.
Tim Starling [Wed, 3 Feb 2010 04:54:20 +0000 (04:54 +0000)]
Revert r56514 and r60421 per CR.
Mark A. Hershberger [Wed, 3 Feb 2010 02:19:25 +0000 (02:19 +0000)]
follow up r61779 - anyone who writes "!$x == null" is an idiot
Max Semenik [Tue, 2 Feb 2010 20:53:28 +0000 (20:53 +0000)]
PHPUnit tests:
* include Setup.php in bootstrap to avoid fatals
* require --> require_once, was causing problems
* require_once "foo.php" --> require_once( "foo.php" ), that's MediaWiki common practice
Alexandre Emsenhuber [Tue, 2 Feb 2010 20:45:35 +0000 (20:45 +0000)]
* (bug 21593) Special:UserRights now lists automatic groups membership
Raimond Spekking [Tue, 2 Feb 2010 19:40:21 +0000 (19:40 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-02-02 19:15 UTC)
Chad Horohoe [Tue, 2 Feb 2010 19:17:14 +0000 (19:17 +0000)]
Merge alternative readme into main file. Two ways to install phpunit, document them both. Drop run-test.php method of running files doesn't work. Update makefile. TODO: Merge all of the nasty global setup crap into a common wrapper (maybe MediaWiki_TestCase?) so we don't have to constantly reinvent the whell.