Alexandre Emsenhuber [Sat, 2 Oct 2010 21:58:04 +0000 (21:58 +0000)]
And while I'm a it:
* Fixed E_STRICT about different signature of TextPassDumper::dump() and BackupDumper::dump()
* Add the possibility to show the help message...
Alexandre Emsenhuber [Sat, 2 Oct 2010 21:51:44 +0000 (21:51 +0000)]
Per Platonides; follow-up r74158: XMLReader is included in PHP since 5.1.0
Alexandre Emsenhuber [Sat, 2 Oct 2010 21:40:43 +0000 (21:40 +0000)]
MediaWiki even require PHP 5.1.0+ ;)
Brian Wolff [Sat, 2 Oct 2010 21:35:00 +0000 (21:35 +0000)]
follow-up r74150 - empty() == bad.
Alexandre Emsenhuber [Sat, 2 Oct 2010 21:09:23 +0000 (21:09 +0000)]
Fix doc: $wgExtensionFunctions, not $wgExtensionSetupFunctions
Brian Wolff [Sat, 2 Oct 2010 20:36:23 +0000 (20:36 +0000)]
Fix undefined variable notice if $wgHiddenPrefs[] = 'fancysig'.
Use !empty($blah) since that is what the rest of the code is doing. This does
not change the behaviour in any way, only gets rid of the warning. Issue
discovered by jorenl on irc.
Raimond Spekking [Sat, 2 Oct 2010 19:58:17 +0000 (19:58 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-02 19:45:00 UTC)
Max Semenik [Sat, 2 Oct 2010 18:45:18 +0000 (18:45 +0000)]
Fix botched up comments
Niklas Laxström [Sat, 2 Oct 2010 16:54:53 +0000 (16:54 +0000)]
Fix logic error in IMS check introduced in r72940. Was sending 304 even for modified files
Niklas Laxström [Sat, 2 Oct 2010 16:11:44 +0000 (16:11 +0000)]
Fix personal user styles being broken since introduction in r73024
Alexandre Emsenhuber [Sat, 2 Oct 2010 14:23:26 +0000 (14:23 +0000)]
Fixed a doxygen warning
Alexandre Emsenhuber [Sat, 2 Oct 2010 13:45:35 +0000 (13:45 +0000)]
Removed trailing whitespaces
Max Semenik [Sat, 2 Oct 2010 10:18:48 +0000 (10:18 +0000)]
Bug 25338: fixed exception in Resource Loader
Max Semenik [Sat, 2 Oct 2010 08:37:51 +0000 (08:37 +0000)]
rm obsolete comment
Alexandre Emsenhuber [Sat, 2 Oct 2010 08:31:55 +0000 (08:31 +0000)]
removed some unused variables
Alexandre Emsenhuber [Sat, 2 Oct 2010 08:30:03 +0000 (08:30 +0000)]
Fix for r74134: copy-paste error
Alexandre Emsenhuber [Sat, 2 Oct 2010 08:29:01 +0000 (08:29 +0000)]
removed call to deprecated function dbsource() and a comment that mentioned it
Alexandre Emsenhuber [Sat, 2 Oct 2010 08:04:58 +0000 (08:04 +0000)]
__FUNCTION__ -> __METHOD__
Alexandre Emsenhuber [Sat, 2 Oct 2010 07:57:43 +0000 (07:57 +0000)]
added @file to the file description header
Alexandre Emsenhuber [Sat, 2 Oct 2010 07:40:54 +0000 (07:40 +0000)]
removed trailing whitespaces
Alexandre Emsenhuber [Sat, 2 Oct 2010 07:39:17 +0000 (07:39 +0000)]
Uncommented some used options; added the possibility to define $wgScriptPath
Philip Tzou [Sat, 2 Oct 2010 06:49:52 +0000 (06:49 +0000)]
Update the Chinese conversion tables.
Platonides [Fri, 1 Oct 2010 23:11:21 +0000 (23:11 +0000)]
Revert r74117. Breaks the test. Using an internal request it doesn't fail with NeedToken, but gives Success instead.
Platonides [Fri, 1 Oct 2010 22:59:57 +0000 (22:59 +0000)]
Remove suite included twice in suite.xml
Rename MediaWikiParserTestSuite class to MediaWikiParserTest. This way, it matches its file basename, which makes phpunit not to consider, when loading MediaWikiParserText.php, the ParserUnitTest (coming from ParserHelpers.php require) as a standalone test class, which is what was producing the warning: No tests found in class "ParserUnitTest".
All tests pass for me now:
Tests: 752, Assertions: 3706, Incomplete: 2.
Incomplete tests are testApiListPages() and testWatchRollback()
Platonides [Fri, 1 Oct 2010 22:59:04 +0000 (22:59 +0000)]
Follow up r73976. Made the test do not depend on $wgUsePathInfo being true and $wgArticlePath the default.
Sam Reed [Fri, 1 Oct 2010 22:32:56 +0000 (22:32 +0000)]
Make user 'sysop', so we get delete/protect token, makes testGetToken pass (maybe not the best fix.. Have 2 users..? Or check rights or something)
Sam Reed [Fri, 1 Oct 2010 22:27:56 +0000 (22:27 +0000)]
Fixup testApiLoginBadPass per r74113, still failing, it's checking for "NeedToken" at the end of the test, but "success" is being returned, which seems wrong to me...
Trevor Parscal [Fri, 1 Oct 2010 22:13:29 +0000 (22:13 +0000)]
Fixed mistake in r73686 where I wrapped CSS in a JavaScript conditional.
Trevor Parscal [Fri, 1 Oct 2010 22:06:03 +0000 (22:06 +0000)]
Fixed typo in r73673, thank for spotting that Roan!
Sam Reed [Fri, 1 Oct 2010 21:50:52 +0000 (21:50 +0000)]
Switch testApiLoginGoodPass to use doApiRequest
Submitting for IRC sanity check :D
Trevor Parscal [Fri, 1 Oct 2010 21:50:32 +0000 (21:50 +0000)]
Fixed bug that caused version numbers to be output incorectly. JavaScript's Array.prototype.join() uses "," as a default value, not "".
Max Semenik [Fri, 1 Oct 2010 21:06:32 +0000 (21:06 +0000)]
Installer: added an environment check for SQLite search capabilities
Alexandre Emsenhuber [Fri, 1 Oct 2010 20:56:39 +0000 (20:56 +0000)]
Be sure that MW_NO_SETUP is defined before executing updates, this is not always defined at that point
Trevor Parscal [Fri, 1 Oct 2010 20:46:42 +0000 (20:46 +0000)]
Removed double-encoding of dependencies and group for custom loader scripts.
Alexandre Emsenhuber [Fri, 1 Oct 2010 20:39:07 +0000 (20:39 +0000)]
Fix for r72553: DatabaseUpdater::execute() doesn't exist...
Trevor Parscal [Fri, 1 Oct 2010 20:26:18 +0000 (20:26 +0000)]
Added group param to loader script wrapping.
Sam Reed [Fri, 1 Oct 2010 20:17:01 +0000 (20:17 +0000)]
Minor followup to r74095, remove method as all it does is call it's parent (Thanks to Nikerabbit on IRC)
Remove leading tab from ApiMove
Sam Reed [Fri, 1 Oct 2010 20:12:50 +0000 (20:12 +0000)]
* (bug 25248) API: paraminfo errors with certain modules
Added a needsToken() function, rather than calling getTokenSalt, which can throw silly errors due to dependencies on parameters
Sam Reed [Fri, 1 Oct 2010 19:37:38 +0000 (19:37 +0000)]
Remove error from ApiUserrights getPossibleErrors, it doesn't explicitally throw an error for missing user param. Does some other fancy errors from the special page. We should have a way for that to tell us it throws some errors....
Remove trailing whitespace
Raimond Spekking [Fri, 1 Oct 2010 19:37:33 +0000 (19:37 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-01 19:27:00 UTC)
Full export after separation of countries/states
Alexandre Emsenhuber [Fri, 1 Oct 2010 19:32:49 +0000 (19:32 +0000)]
Break lines at 80 chars
Alexandre Emsenhuber [Fri, 1 Oct 2010 19:29:37 +0000 (19:29 +0000)]
Follow-up r72872: added RELEASE-NOTES entry
Trevor Parscal [Fri, 1 Oct 2010 19:22:06 +0000 (19:22 +0000)]
Improved on r73046 by removing asumption of $ === jQuery.
Trevor Parscal [Fri, 1 Oct 2010 19:20:27 +0000 (19:20 +0000)]
Improves on r73032 by making more consistent use of escape sequences.
Trevor Parscal [Fri, 1 Oct 2010 18:11:07 +0000 (18:11 +0000)]
Improved on r73093 by allowing jQuery to properly escape some HTML attributes.
Trevor Parscal [Fri, 1 Oct 2010 18:05:55 +0000 (18:05 +0000)]
Resolves issue in r73046 where a jQuery plugin assumed $; wrapped it in a closure to solve this.
Trevor Parscal [Fri, 1 Oct 2010 17:39:32 +0000 (17:39 +0000)]
Resolved issues in r73026, namely a confusing comment and a missing var keyword.
Max Semenik [Fri, 1 Oct 2010 16:09:01 +0000 (16:09 +0000)]
"self::" --> "this->"
Alexandre Emsenhuber [Fri, 1 Oct 2010 16:04:07 +0000 (16:04 +0000)]
And while I'm a it: __FUNCTION__ -> __METHOD__
Alexandre Emsenhuber [Fri, 1 Oct 2010 16:00:19 +0000 (16:00 +0000)]
wfOut() -> $this->output() for consistency
Chad Horohoe [Fri, 1 Oct 2010 15:11:06 +0000 (15:11 +0000)]
wfOut() -> $this->output(). More useful in the long run. No functional changes.
Sam Reed [Fri, 1 Oct 2010 11:21:46 +0000 (11:21 +0000)]
Few explicit class variable definitions
Niklas Laxström [Fri, 1 Oct 2010 06:39:42 +0000 (06:39 +0000)]
Fix timestamp generation for pages broken in r72961.
Trevor Parscal [Thu, 30 Sep 2010 21:58:32 +0000 (21:58 +0000)]
Added tests for new TS_ISO_8601_BASIC timestamp format added in r74043 (and fixed in r74045)
Trevor Parscal [Thu, 30 Sep 2010 21:32:19 +0000 (21:32 +0000)]
Fixed bug in r74043 where a : was left out of a regex for matching timestamps to TS_ISO_8691_BASIC
Trevor Parscal [Thu, 30 Sep 2010 21:20:09 +0000 (21:20 +0000)]
* Added support for basic version of ISO_8601 timestamp format (see en.wikipedia.org/wiki/ISO_8601)
* Made use of ISO_8601 basic for ResourceLoader
Chad Horohoe [Thu, 30 Sep 2010 20:19:46 +0000 (20:19 +0000)]
Followup r74034, missed one GAID_FOR_UPDATE
Raimond Spekking [Thu, 30 Sep 2010 20:11:36 +0000 (20:11 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-30 19:59:00 UTC)
Chad Horohoe [Thu, 30 Sep 2010 19:13:25 +0000 (19:13 +0000)]
Refactor GAID_FOR_UPDATE into Title::GAID_FOR_UPDATE. Yay less file-scope code (extensions will follow)
Chad Horohoe [Thu, 30 Sep 2010 15:35:10 +0000 (15:35 +0000)]
(bug 25367) wfShellExec() is more explicit when failing due to disabled passthru()
Trevor Parscal [Thu, 30 Sep 2010 06:54:23 +0000 (06:54 +0000)]
Added some content for basic unit tests for ResourceLoader class.
Mark A. Hershberger [Thu, 30 Sep 2010 01:00:16 +0000 (01:00 +0000)]
* Update Makefile with recommended SHELL variable
* Use $(shell pwd) so that if the makefile is executed with ‘-C path',
it will find the suite.xml
* Update ExtraParserTest with a sane-for-testing default for
$wgShowDBErrorBacktrace
* Set $wgContLang if for some reasaon, it is null.
Trevor Parscal [Wed, 29 Sep 2010 23:57:53 +0000 (23:57 +0000)]
Added some content for basic unit tests for ResourceLoader class.
Platonides [Wed, 29 Sep 2010 23:27:26 +0000 (23:27 +0000)]
Do not show math toolbar button if TeX is disabled.
Do not show image and media toolbar buttons if the wiki can't show images (either by local upload or via a foreign repo)
Trevor Parscal [Wed, 29 Sep 2010 23:25:07 +0000 (23:25 +0000)]
Removed the requirement to define getModifiedTime for a module, the default implementation returns 1
Platonides [Wed, 29 Sep 2010 21:52:52 +0000 (21:52 +0000)]
Added a couple of <nowiki> - <pre> tests per bug 13238
Trevor Parscal [Wed, 29 Sep 2010 21:42:30 +0000 (21:42 +0000)]
Moved wgDBName out of $wgUseAjax / $wgEnableMWSuggest conditional - this needs to be done in deployment as well.
Trevor Parscal [Wed, 29 Sep 2010 21:13:56 +0000 (21:13 +0000)]
Fixed a use of ResourceLoader::getModule as a static method when converting things over in r73971.
Platonides [Wed, 29 Sep 2010 20:24:38 +0000 (20:24 +0000)]
Follow up r73951
Aryeh Gregor [Wed, 29 Sep 2010 20:05:16 +0000 (20:05 +0000)]
Fix IEFixes.js loading again
Bug 25167. The fix in r65774 was wrong -- apparently I didn't test well
enough. I've tested the new fix by loading IE6 and requesting a page
from my wiki without it, verifying with Wireshark that no HTTP request
was sent for IEFixes.js, and then repeating with the fix applied to
verify it works.
Will backport to 1.16, like r65774, since this is still a regression
from 1.15. Note that only IE6 and less were ever affected, and things
seem to be mostly usable without the fixes file, so I don't think this
is of enormous importance.
Raimond Spekking [Wed, 29 Sep 2010 20:04:42 +0000 (20:04 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-29 19:56:00 UTC)
Antoine Musso [Wed, 29 Sep 2010 19:51:48 +0000 (19:51 +0000)]
Implements bug 24343 "localurl discards section id".
* parser hook 'linkurl' which use Title::getLinkUrl()
* very basic tests for the Title class
Trevor Parscal [Wed, 29 Sep 2010 19:06:32 +0000 (19:06 +0000)]
Updated hooks documentation as per changes in r73971.
Trevor Parscal [Wed, 29 Sep 2010 19:04:04 +0000 (19:04 +0000)]
Made ResourceLoader an instantiable object, rather than a static one, making it more modular and testable.
Chad Horohoe [Wed, 29 Sep 2010 18:48:05 +0000 (18:48 +0000)]
Move 'no license' further down the list. We want people to freely license their work! Pointed out by vimpulse on IRC
Chad Horohoe [Wed, 29 Sep 2010 18:19:03 +0000 (18:19 +0000)]
Move doApiRequest() up a level so ApiTest can use it as well. Fix first two tests to do internal FauxRequests rather than relying on an external HTTP connection
Chad Horohoe [Wed, 29 Sep 2010 18:18:07 +0000 (18:18 +0000)]
Document return values I needed
Trevor Parscal [Wed, 29 Sep 2010 18:02:56 +0000 (18:02 +0000)]
Added support for PHPUnit 3.5, where PHPUnit_Util_Timer is replaced with PHP_Timer.
Chad Horohoe [Wed, 29 Sep 2010 17:39:06 +0000 (17:39 +0000)]
Mark test incomplete if Main Page only has one author like on my install
Ryan Kaldari [Wed, 29 Sep 2010 17:25:17 +0000 (17:25 +0000)]
fixing per comments at r70517
Chad Horohoe [Wed, 29 Sep 2010 16:26:24 +0000 (16:26 +0000)]
Remove bogus addGroup() call. All users are in *
Platonides [Wed, 29 Sep 2010 16:20:41 +0000 (16:20 +0000)]
Fixed dummy test that only checks that the License object can be created.
Platonides [Wed, 29 Sep 2010 16:05:46 +0000 (16:05 +0000)]
Move some globals into the class.
Platonides [Wed, 29 Sep 2010 15:54:43 +0000 (15:54 +0000)]
Tiny changes, fix comment, remove unused globals and throw and exception instead of a fatal if given a wrong langcode.
Platonides [Wed, 29 Sep 2010 15:47:56 +0000 (15:47 +0000)]
Remove $wgServerName. Its only usage was for {{servername}}, and needed to be kept in sync with $wgServer in LocalSettings.
None of the 3 globals based on it changed if you set it in LocalSettings.
Note that all those !isset( $wgServerName ) in ApiTests were useless, since if not in LocalSettings it would be 'localhost', not null (as still are those !isset( $wgServer )).
Platonides [Wed, 29 Sep 2010 15:22:47 +0000 (15:22 +0000)]
Fight PHP Fatal error: Call to a member function attributes() on a non-object
Max Semenik [Wed, 29 Sep 2010 12:09:55 +0000 (12:09 +0000)]
Revert r73887. I blame Nikerabbit!
Max Semenik [Wed, 29 Sep 2010 09:05:47 +0000 (09:05 +0000)]
Fixed a few parser tests that were failing for me when run by PHPUnit
Raimond Spekking [Tue, 28 Sep 2010 19:02:58 +0000 (19:02 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-28 18:52:00 UTC)
Antoine Musso [Tue, 28 Sep 2010 18:44:25 +0000 (18:44 +0000)]
Rewrite messenging for old message deletion. The old one is boring.
Chad Horohoe [Tue, 28 Sep 2010 18:13:42 +0000 (18:13 +0000)]
Unify setUp/tearDown in ApiSetup, rather than duplicating in ApiWatchTest. Also fix some errors with not passing an array reference that were being suppressed (but silently work, yay PHP)
Chad Horohoe [Tue, 28 Sep 2010 17:10:51 +0000 (17:10 +0000)]
Followup r64181, rm comment that doesn't fit anymore
Chad Horohoe [Tue, 28 Sep 2010 17:08:57 +0000 (17:08 +0000)]
Use suite user/password rather than assuming WikiSysop
Niklas Laxström [Tue, 28 Sep 2010 15:58:53 +0000 (15:58 +0000)]
Revert r73879 for now, not ready yet.
Chad Horohoe [Tue, 28 Sep 2010 15:53:24 +0000 (15:53 +0000)]
Followup r73884, remove unused file (obsoleted in r68544)
Chad Horohoe [Tue, 28 Sep 2010 15:41:55 +0000 (15:41 +0000)]
Followup r73880, forgot to give kbd and samp their attribute whitelists
Max Semenik [Tue, 28 Sep 2010 13:46:23 +0000 (13:46 +0000)]
DatabaseSqlite: better check for error. Noticed by Nikerabbit
Chad Horohoe [Tue, 28 Sep 2010 12:24:56 +0000 (12:24 +0000)]
Move parser test related stuff to tests directory
* Moved test record stuff to testHelpers.inc, could be useful for non-parser test stuff?
* Everything else in tests/parser
* parserTestsParserTime from r12533 doesn't seem used?
Chad Horohoe [Tue, 28 Sep 2010 11:39:10 +0000 (11:39 +0000)]
Sanity check on result from SHOW PROCESSLIST, foreach -> while (sorta followup to r68878)
Chad Horohoe [Tue, 28 Sep 2010 11:12:56 +0000 (11:12 +0000)]
More bug 671: whitelist <kbd> and <samp> for user input. Followup per r70164's comment.