Niklas Laxström [Sat, 23 Oct 2010 15:24:08 +0000 (15:24 +0000)]
Fix immediate issues in r72900. I'd still like more testing and perhaps requests from language communities before adding the rest.
Chad Horohoe [Sat, 23 Oct 2010 15:16:25 +0000 (15:16 +0000)]
Fix a few visibilities, add a @todo
Mark A. Hershberger [Sat, 23 Oct 2010 15:06:06 +0000 (15:06 +0000)]
Initial checkin from !mwhack of a sample PHPUnit check.
Siebrand Mazeland [Sat, 23 Oct 2010 14:56:55 +0000 (14:56 +0000)]
Follow-up to r74771, 75241: complete rename for bat-smg to sgs.
Roan Kattouw [Sat, 23 Oct 2010 14:53:06 +0000 (14:53 +0000)]
Revert r73593, root cause has long been fixed
Shinjiman [Sat, 23 Oct 2010 14:48:18 +0000 (14:48 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
Siebrand Mazeland [Sat, 23 Oct 2010 14:47:44 +0000 (14:47 +0000)]
Rename MessagesBat_smg.php to MessagesSgs.php. Follow-up to r74771. Needs a follow-up commit for extensions with translations in bat-smg and a new file MessagesBat_smg.php having $fallback = 'sgs'.
Siebrand Mazeland [Sat, 23 Oct 2010 14:41:09 +0000 (14:41 +0000)]
Add 'bat-smg' to $wgDummyLanguageCodes - addresses MaxSem's comment 10095 on r74771.
Alexandre Emsenhuber [Sat, 23 Oct 2010 14:16:26 +0000 (14:16 +0000)]
* Standardised file description headers
* added @file where needed
* added file description headers where needed
Alexandre Emsenhuber [Sat, 23 Oct 2010 13:52:06 +0000 (13:52 +0000)]
Per Reedy, fix for r70274: forgot to change this
Max Semenik [Sat, 23 Oct 2010 11:16:44 +0000 (11:16 +0000)]
Reverted r70151 and re-did what it was intended to do in a proper way: instead of just quietly serializing a crippled connection, fix the caller and receive nice exceptions when something else is broken instead of bug-hunting later.
Max Semenik [Sat, 23 Oct 2010 09:59:57 +0000 (09:59 +0000)]
Revert r73942, which was itself a revert of r73887. After r75213 it will not cause additional test failures.
Mark A. Hershberger [Sat, 23 Oct 2010 03:01:47 +0000 (03:01 +0000)]
re r70916: avoid resetting $wgMemc which leads to failures for me
Roan Kattouw [Fri, 22 Oct 2010 22:43:14 +0000 (22:43 +0000)]
Add __METHOD__ to query() call in runBatchedQuery.php
Max Semenik [Fri, 22 Oct 2010 19:48:38 +0000 (19:48 +0000)]
PDO doesn't seem to like opening nothing
Raimond Spekking [Fri, 22 Oct 2010 19:41:58 +0000 (19:41 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-22 18:58:00 UTC)
Trevor Parscal [Thu, 21 Oct 2010 22:34:26 +0000 (22:34 +0000)]
Fixed missing break; in ResourceLoaderFileModule::__construct, and added extra error checking to it's input arrays.
Raimond Spekking [Thu, 21 Oct 2010 21:55:48 +0000 (21:55 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-21 19:58:00 UTC)
Trevor Parscal [Thu, 21 Oct 2010 21:33:49 +0000 (21:33 +0000)]
Renamed vector and monobook modules to skins.vector and skins.monobook - a convention that should be followed in the future for other skins.
Trevor Parscal [Thu, 21 Oct 2010 21:25:27 +0000 (21:25 +0000)]
ResourceLoaderFileModule now uses mediaWiki.loader.load to load scripts in debug mode.
Jack Phoenix [Thu, 21 Oct 2010 20:42:42 +0000 (20:42 +0000)]
follow-up to r73178: fix copypaste mistake
Antoine Musso [Thu, 21 Oct 2010 18:26:17 +0000 (18:26 +0000)]
Follow up r67073 : add curly to if statement
Mark A. Hershberger [Thu, 21 Oct 2010 18:18:00 +0000 (18:18 +0000)]
* Followup r75064 — fix misleading doc comment
* Don't let redirects set the status object to an error.
Trevor Parscal [Thu, 21 Oct 2010 01:03:46 +0000 (01:03 +0000)]
Changed the way that ResourceLoaderFileModule and mediaWiki.loader work in debug mode. As of this commit, in debug mode, ResourceLoaderFileModule will emit code which appends a a script tag for each raw JavaScript file in the module, instead of the concatenated code of the module's scripts. This eliminates the need to disable batch loading on the client in debug mode, since it effectively supersedes the effect of turning batch loading off.
Sam Reed [Wed, 20 Oct 2010 23:36:21 +0000 (23:36 +0000)]
Followup r75096 per Platonides, name the stuff better, rather than just fixing the typo..
Trevor Parscal [Wed, 20 Oct 2010 20:56:33 +0000 (20:56 +0000)]
Improves on r75055, improving comment accuracy, and removing useless casting.
Trevor Parscal [Wed, 20 Oct 2010 20:43:30 +0000 (20:43 +0000)]
* Improves on r75054 and r75036 by adding comments and renaming variables
* Fixes issue cased by creating a file module that only contains a list of dependencies.
Sam Reed [Wed, 20 Oct 2010 20:16:46 +0000 (20:16 +0000)]
Few more explicit class variable declarations
Raimond Spekking [Wed, 20 Oct 2010 19:23:57 +0000 (19:23 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-20 19:06:00 UTC)
Roan Kattouw [Wed, 20 Oct 2010 19:13:43 +0000 (19:13 +0000)]
Include $IP in path passed to remap() so filesystem access will work properly
Sam Reed [Wed, 20 Oct 2010 18:50:33 +0000 (18:50 +0000)]
Fix some method documentation
Fix some typos
Some explicit class members
Roan Kattouw [Wed, 20 Oct 2010 14:58:35 +0000 (14:58 +0000)]
Some comment fixes: be consistent between # and //, fix grammar, remove information about internals from Doxygen comment (those are about what the function does, not how). Also make $modules argument to makeModuleResponse() default to array() instead of null
Derk-Jan Hartman [Wed, 20 Oct 2010 14:50:30 +0000 (14:50 +0000)]
Add support to upload WebP files. Disabled by default and no thumbnailing support.
Relates to bug 25397
Jack Phoenix [Wed, 20 Oct 2010 12:11:46 +0000 (12:11 +0000)]
add some braces and trim trailing whitespace
Jack Phoenix [Wed, 20 Oct 2010 12:00:55 +0000 (12:00 +0000)]
coding style tweaks
Brion Vibber [Wed, 20 Oct 2010 06:10:02 +0000 (06:10 +0000)]
Add seleniumserverexecpath and example non-default-PATH Firefox paths for Mac & Win in selenium_settings.ini.sample
Brion Vibber [Wed, 20 Oct 2010 06:03:15 +0000 (06:03 +0000)]
Tweaks to let Selenium tests run on Mac OS X; also make sure we quote the server exec path, as not everybody keeps their directory trees free of spaces! :)
Mark A. Hershberger [Wed, 20 Oct 2010 02:50:36 +0000 (02:50 +0000)]
follow up r75046 — Add getStatus() method to HttpRequest
Trevor Parscal [Wed, 20 Oct 2010 00:25:20 +0000 (00:25 +0000)]
Whitespace, comments and general cleanup.
Trevor Parscal [Wed, 20 Oct 2010 00:22:25 +0000 (00:22 +0000)]
Whitespace, comments and general cleanup.
Trevor Parscal [Tue, 19 Oct 2010 23:47:56 +0000 (23:47 +0000)]
Some cleanup work
Trevor Parscal [Tue, 19 Oct 2010 23:02:15 +0000 (23:02 +0000)]
Whitespace adjustments
Trevor Parscal [Tue, 19 Oct 2010 23:00:52 +0000 (23:00 +0000)]
Fixed remaning use of $this->loaders to use the new naming of $this->loaderScripts
Trevor Parscal [Tue, 19 Oct 2010 22:53:53 +0000 (22:53 +0000)]
Fixed case where tryForKey can sometimes not return an array
Trevor Parscal [Tue, 19 Oct 2010 22:48:52 +0000 (22:48 +0000)]
Refactored ResourceLoaderFileModule, most notably removing the set* methods, which are not in use at the moment, and should only be added when we have a use case for them (API bloat = bad)
Trevor Parscal [Tue, 19 Oct 2010 21:05:07 +0000 (21:05 +0000)]
* Added extendable fallback closure to configuration prototype.
* Renamed configuration to map, since it's being used more generally than just for configurations.
Platonides [Tue, 19 Oct 2010 21:02:03 +0000 (21:02 +0000)]
Remove PHP Notice: Undefined index: usedomain in phase3/includes/templates/Userlogin.php on line 70
Add extradata data for adding fields from an extension.
Trevor Parscal [Tue, 19 Oct 2010 20:59:23 +0000 (20:59 +0000)]
Fixed ResourceLoaderFileModule constructor - collated lists were not being prefixed properly. Also did some renaming to improve consistency.
Antoine Musso [Tue, 19 Oct 2010 20:45:02 +0000 (20:45 +0000)]
documentation, a couple notes about code and some whitespaces adjustements to make code easier to read.
Markus Glaser [Tue, 19 Oct 2010 19:58:58 +0000 (19:58 +0000)]
Follow up r74753, removed pass-by-references and @ operator
Raimond Spekking [Tue, 19 Oct 2010 19:38:34 +0000 (19:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-19 19:03:00 UTC)
Markus Glaser [Tue, 19 Oct 2010 19:38:30 +0000 (19:38 +0000)]
Follow up r74750, array keys should be strings
Sam Reed [Tue, 19 Oct 2010 18:40:43 +0000 (18:40 +0000)]
Followup r74988, brion wins again ;D
Trevor Parscal [Tue, 19 Oct 2010 18:31:09 +0000 (18:31 +0000)]
Part 2 of 2, moved ResourceLoader*Module classes to their own files - this commit removes the non file specific code.
Trevor Parscal [Tue, 19 Oct 2010 18:25:42 +0000 (18:25 +0000)]
Part 1 of 2, moving ResourceLoader*Module classes to their own files - this commit copies the ResourceLoaderModules.php file to each of the new files, as to maintain revision history. The next revision will remove non file specific code.
Trevor Parscal [Tue, 19 Oct 2010 18:21:38 +0000 (18:21 +0000)]
Moved ResourceLoader classes to their own folder, preparing to also split ResourceLoaderModule.php into multiple files (it's getting a bit long now)
Trevor Parscal [Tue, 19 Oct 2010 17:52:01 +0000 (17:52 +0000)]
Reverts r75018, and does what that commit was supposed to do.
Trevor Parscal [Tue, 19 Oct 2010 17:48:41 +0000 (17:48 +0000)]
Improves on r74964 by including PHP warnings emitted during a ResourceLoader response in a comment at the end of the response - only while in debug mode.
Niklas Laxström [Tue, 19 Oct 2010 08:27:13 +0000 (08:27 +0000)]
Temp fix for r74966 to stop causing errors everywhere
Antoine Musso [Tue, 19 Oct 2010 06:27:25 +0000 (06:27 +0000)]
Follow up r74962, debug messages should be splitted.
This is to avoid log mess with concurrent accesses and to allow logging between the messages.
Makes the message more readeable:
Connecting to localhost wikidb...
Connected to localhost wikidb.
Connection failed to localhost wikidb.
Jure Kajzer [Tue, 19 Oct 2010 06:25:12 +0000 (06:25 +0000)]
* fixed r74949 remarks
* modified version lookup, added 9iR1 as minimum version for installation.
Sam Reed [Tue, 19 Oct 2010 00:44:28 +0000 (00:44 +0000)]
Swap usage of create_function for defined function as a callback
Sam Reed [Mon, 18 Oct 2010 23:50:33 +0000 (23:50 +0000)]
Per CR on r45418...
Explicitally define $refers = array();, as it being in a loop is just slight confusing with the isset
Purodha B Blissenbach [Mon, 18 Oct 2010 23:27:41 +0000 (23:27 +0000)]
Add link in message, similar to the similar ones in this group.
Chad Horohoe [Mon, 18 Oct 2010 22:37:44 +0000 (22:37 +0000)]
Followup r68760: add comment
Antoine Musso [Mon, 18 Oct 2010 21:36:58 +0000 (21:36 +0000)]
Add parser tests to the 'Parser' group
Makefile gets some additional targets
Roan Kattouw [Mon, 18 Oct 2010 20:35:56 +0000 (20:35 +0000)]
First shot at porting Monobook to Vector. The only non-straightforward part is moving from a separate rtl.css file to a main.css file we can safely Janus. This is half-done right now. Notable things:
* No longer including rtl.css, instead relying on Janused main.css
* Renamed external.png to external-ltr.png so Janus will pick up on external-rtl.png (already exists)
* Added @embed to all images, add @noflip where needed (may not have covered all cases)
* Pulled some things from rtl.css into main.css such that they're no-ops in LTR but are needed in RTL. Example: body { direction:ltr;
* Killed some RTL-specific rules in main.css that were superseded in main.css
* Changed padding: 0 foo; to padding-right: foo; so it gets Janused right
* Commented out loading of IE*Fixes.css. Still need to incorporate these into main.css somehow
Roan Kattouw [Mon, 18 Oct 2010 20:16:19 +0000 (20:16 +0000)]
ResourceLoader: Clear warnings before echo'ing output
Antoine Musso [Mon, 18 Oct 2010 19:56:33 +0000 (19:56 +0000)]
Make some wfDebug() messages nicer to look at in debug log file.
Raimond Spekking [Mon, 18 Oct 2010 19:42:19 +0000 (19:42 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-18 19:23:00 UTC)
Priyanka Dhanda [Mon, 18 Oct 2010 18:28:16 +0000 (18:28 +0000)]
Reverted accidental changes to DifferenceInterface in r74956
Priyanka Dhanda [Mon, 18 Oct 2010 18:20:19 +0000 (18:20 +0000)]
Added to DefaultSettings
Priyanka Dhanda [Mon, 18 Oct 2010 18:15:13 +0000 (18:15 +0000)]
Follow up to r74780. Set default for . did some sanity check around testSuiteNames. Some more code cleanup
Priyanka Dhanda [Mon, 18 Oct 2010 18:14:36 +0000 (18:14 +0000)]
Follow up to r74780. Set default for .
Platonides [Mon, 18 Oct 2010 17:42:14 +0000 (17:42 +0000)]
Double braces introduced in r74742 giving a fatal:
PHP Parse error: syntax error, unexpected $end in ./maintenance/purgeOldText.inc on line 63
Siebrand Mazeland [Mon, 18 Oct 2010 17:29:32 +0000 (17:29 +0000)]
Follow-up r74949: fix typo in UI message.
Raimond Spekking [Mon, 18 Oct 2010 16:41:13 +0000 (16:41 +0000)]
Follow-up r74949: Comment out a contentless message to avoid useless translation in Translatewiki
Re-enable this message when the help text is ready. Thanks.
Max Semenik [Mon, 18 Oct 2010 16:21:31 +0000 (16:21 +0000)]
Fixed ImageMagick detection on Windows
Jure Kajzer [Mon, 18 Oct 2010 16:09:18 +0000 (16:09 +0000)]
* Installer: works (beta). More testing tomorow.
* Updater: todo. For now it skips.
Roan Kattouw [Mon, 18 Oct 2010 15:15:32 +0000 (15:15 +0000)]
(bug 25535) Don't include empty JS/CSS messages at <Skinname.js>
Roan Kattouw [Mon, 18 Oct 2010 15:11:48 +0000 (15:11 +0000)]
Per r74946 CR, check whether realpath( $file ) returns false before using it
Roan Kattouw [Mon, 18 Oct 2010 14:59:42 +0000 (14:59 +0000)]
(bug 25546) Feed argument to finfo_file() through readpath() so it'll work on Windows
Chad Horohoe [Mon, 18 Oct 2010 14:28:51 +0000 (14:28 +0000)]
Revert most of r72335:
* wfRunMaintenance() had scope issues (Maintenance::run() would have the same issues). Also per CR, it doesn't really reduce the amount of code that users are writing
* Example maintenance script doesn't belong here. There's already an example in docs/maintenance.txt, as well as docs on mw.org. Suggest expanding those instead.
Roan Kattouw [Mon, 18 Oct 2010 09:19:20 +0000 (09:19 +0000)]
Revert r74810 (vary API help cache on $wgUser->isAnon()) and move the POST check into the purge module. Also fix the permissions check in action=purge, which was totally broken and based on a misunderstanding of what the 'purge' right means.
Sean Colombo [Mon, 18 Oct 2010 06:12:55 +0000 (06:12 +0000)]
Did some testing to beef up the documentation a bit in memcached-client.php
Platonides [Sun, 17 Oct 2010 22:47:24 +0000 (22:47 +0000)]
$wgUser is never a Stub since r70970.
Platonides [Sun, 17 Oct 2010 22:33:25 +0000 (22:33 +0000)]
$wgUser is never a Stub since r70970.
This means, the user data was innecessarily loaded here just for the debug message.
It also caused bug 24995 - "fallback" key missing from localization cache.
For languages other than English (short-circuitted in Language.php:2800) during
Language load, it gets the fallback from the localization cache, which used the db,
which then loaded here the User object, which called WebRequest caused unstubbing (again)
of ContentLanguage for unicode normalization, which loaded again the Language (a call
to loadItem( 'xx', 'fallback' ) under loadItem( 'xx', 'fallback' ) stack) and then
caused it to finally fail.
It wasn't an unstub loop, but was near.
Backtrace:
LocalisationCache::loadItem phase3/includes/LocalisationCache.php:205 <-- Second load of key fallback
LocalisationCache::getItem phase3/languages/Language.php:2802
Language::getFallbackFor phase3/languages/Language.php:169
Language::newFromCode phase3/languages/Language.php:140
Language::factory phase3/includes/StubObject.php:126
StubContLang::_newObject phase3/includes/StubObject.php:103
StubObject::_unstub phase3/includes/StubObject.php:57
StubObject::_call phase3/includes/StubObject.php:121
StubContLang::__call phase3/includes/WebRequest.php:204 <-- Second unstub
StubContLang::normalize phase3/includes/WebRequest.php:204
WebRequest::normalizeUnicode phase3/includes/WebRequest.php:231
WebRequest::getGPCVal phase3/includes/WebRequest.php:460
WebRequest::getCookie phase3/includes/User.php:835
User::loadFromSession phase3/includes/User.php:221
User::load phase3/includes/User.php:1501
User::getName phase3/includes/db/Database.php:658
DatabaseBase::query phase3/includes/db/DatabaseMysql.php:120
DatabaseMysql::open phase3/includes/db/Database.php:530
DatabaseBase::__construct phase3/includes/db/LoadBalancer.php:651
LoadBalancer::reallyOpenConnection phase3/includes/db/LoadBalancer.php:532
LoadBalancer::openConnection phase3/includes/db/LoadBalancer.php:455
LoadBalancer::getConnection phase3/includes/GlobalFunctions.php:3085
wfGetDB phase3/includes/LocalisationCache.php:772
LCStore_DB::get phase3/includes/LocalisationCache.php:326
LocalisationCache::isExpired phase3/includes/LocalisationCache.php:355
LocalisationCache::initLanguage phase3/includes/LocalisationCache.php:267
LocalisationCache::loadItem phase3/includes/LocalisationCache.php:205 <-- First load of key fallback
LocalisationCache::getItem phase3/languages/Language.php:2802
Language::getFallbackFor phase3/languages/Language.php:169
Language::newFromCode phase3/languages/Language.php:140
Language::factory phase3/includes/StubObject.php:126
StubContLang::_newObject phase3/includes/StubObject.php:103
StubObject::_unstub phase3/includes/StubObject.php:57
StubObject::_call phase3/includes/StubObject.php:121
StubContLang::__call phase3/includes/WebRequest.php:228 <-- First unstub
StubContLang::checkTitleEncoding phase3/includes/WebRequest.php:228
WebRequest::getGPCVal phase3/includes/WebRequest.php:250
WebRequest::getVal phase3/index.php:56
Sam Reed [Sun, 17 Oct 2010 21:18:04 +0000 (21:18 +0000)]
Revert r74913, caused many problems, and was only likely to cause more in the future
Raimond Spekking [Sun, 17 Oct 2010 20:36:41 +0000 (20:36 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-17 19:57:00 UTC)
Chad Horohoe [Sun, 17 Oct 2010 20:36:07 +0000 (20:36 +0000)]
Followup r74918, rm leftover debugging
Chad Horohoe [Sun, 17 Oct 2010 20:34:25 +0000 (20:34 +0000)]
* Revert r69013 (Use `` instead of wfShellExec() like the old installer). This fails for people in safe_mode and for people with shell_exec in disable_functions. wfShellExec() handles these scenarios. For installation, we'll set $wgMaxShellMemory at 0 to disable the ulimit.
* Make envCheckShellLocale() use wfShellExec() as well (also works on OSX :)
Chad Horohoe [Sun, 17 Oct 2010 19:35:13 +0000 (19:35 +0000)]
rm always-true isOK() check
Sam Reed [Sun, 17 Oct 2010 19:04:05 +0000 (19:04 +0000)]
Move profiler stuff to own folder, updater AutoLoader to match
ProfilerSimpleTrace isn't in AutoLoader. Neither is ProfilerStub
Profiler also says " * This file is only included if profiling is enabled"...
Chad Horohoe [Sun, 17 Oct 2010 19:02:59 +0000 (19:02 +0000)]
For some reason we're not calling preInstall() like we should
Sam Reed [Sun, 17 Oct 2010 18:54:39 +0000 (18:54 +0000)]
Followup r74392. Also cache result of getUser call (may be called twice)
Sam Reed [Sun, 17 Oct 2010 18:51:00 +0000 (18:51 +0000)]
Followup r69904, make call to getRandomString static in Parser->unserialiseHalfParsedText()
Platonides [Sun, 17 Oct 2010 17:28:25 +0000 (17:28 +0000)]
Deprecate User::getPageRenderingHash() as follow-up to r70783.
Chad Horohoe [Sun, 17 Oct 2010 17:20:12 +0000 (17:20 +0000)]
Followup r74847, reduce some more duplication by moving the foreach() logic to a common method.
Also move these functions together
Chad Horohoe [Sun, 17 Oct 2010 17:09:45 +0000 (17:09 +0000)]
Fixup r71449, can't use $var::method() in < 5.3 :(
Use call_user_func() instead
Derk-Jan Hartman [Sun, 17 Oct 2010 15:27:10 +0000 (15:27 +0000)]
Don't set the padding of all sides of links with icons, only set the one that is actually needed.
Fixes bug 25548