Trevor Parscal [Fri, 24 Sep 2010 18:49:19 +0000 (18:49 +0000)]
* Moved registration generation to startup module.
* Moved some javascript code generation to reusable functions (more to do).
* Reduced the code output by using mutliple calling method for mediaWiki.loader.state.
* Moved CSS minification to the end (should be a bit faster than running it for each module).
Roan Kattouw [Fri, 24 Sep 2010 18:16:59 +0000 (18:16 +0000)]
Fix r73645: also do negative caching
Trevor Parscal [Fri, 24 Sep 2010 17:31:40 +0000 (17:31 +0000)]
Added early exits when files are used before webstart
Trevor Parscal [Fri, 24 Sep 2010 17:19:27 +0000 (17:19 +0000)]
Fixed issue in r73645 where an unset value was being returned in some cases.
Matthew Britton [Fri, 24 Sep 2010 14:40:18 +0000 (14:40 +0000)]
reimplement r73652 having actually read coding conventions this time
Matthew Britton [Fri, 24 Sep 2010 13:00:46 +0000 (13:00 +0000)]
API: sinumberingroup now gives correct size of 'user' group, and omits size of implicit groups rather than showing 0.
Trevor Parscal [Thu, 23 Sep 2010 21:23:51 +0000 (21:23 +0000)]
Improved the performance of ResourceLoader by pre-loading module information in a batch query. This was mostly code written by catrope and patched in / gotten working by me.
Raimond Spekking [Thu, 23 Sep 2010 19:45:46 +0000 (19:45 +0000)]
Follow-up r73632: Fix typo
Alexandre Emsenhuber [Thu, 23 Sep 2010 19:41:29 +0000 (19:41 +0000)]
Fixed some doxygen warnings
Max Semenik [Thu, 23 Sep 2010 19:39:32 +0000 (19:39 +0000)]
Fixed a glitch from r73632
Max Semenik [Thu, 23 Sep 2010 19:36:06 +0000 (19:36 +0000)]
Special:Version now displays whether a SQLite database supports full-text search
Raimond Spekking [Thu, 23 Sep 2010 19:30:38 +0000 (19:30 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-23 19:15:00 UTC)
Niklas Laxström [Thu, 23 Sep 2010 19:15:58 +0000 (19:15 +0000)]
(bug 25273) Message::params() triggers a fatal error.
Patch by hashar.
Trevor Parscal [Thu, 23 Sep 2010 18:08:20 +0000 (18:08 +0000)]
Fixed typo pointed out by Icefox - thanks! See comments for r73499.
Matthew Britton [Thu, 23 Sep 2010 10:46:08 +0000 (10:46 +0000)]
follow up r72387: using ApiQuery here breaks ApiParamInfo (bug 25248)
Andrew Garrett [Thu, 23 Sep 2010 06:18:46 +0000 (06:18 +0000)]
Replace $ with $j in ajaxwatch.js, was causing fatal JS errors on pages for me. (resourceloader-related issue?)
OverlordQ [Thu, 23 Sep 2010 02:59:07 +0000 (02:59 +0000)]
Fix regression caused by r62087 which failed to insert rows into the image table due to null comment.
Also correct indefinite/infinite/infinity protection.
Trevor Parscal [Wed, 22 Sep 2010 21:49:31 +0000 (21:49 +0000)]
* Optimized watch star sprite (only linking to the the image once rather than 4 times, makes data-URLs more efficient)
* Removed version numbers from links
Priyanka Dhanda [Wed, 22 Sep 2010 21:23:21 +0000 (21:23 +0000)]
Followup to r73500. SeleniumTestConfig renamed to SeleniumConfig. Make sure SELENIUMTEST is defined to use it.
Fixed some indents and pass by reference warnings
Raimond Spekking [Wed, 22 Sep 2010 21:05:23 +0000 (21:05 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-22 20:51:00 UTC)
Trevor Parscal [Wed, 22 Sep 2010 20:44:12 +0000 (20:44 +0000)]
* Added $wgResourceLoaderDebug, a default fallback for debug mode which can be overridden by the debug URL parameter a la $wgLanguageCode
* Merged $wgResourceLoader(Unv|V)ersioned(Client|Server)Maxage vars into $wgResourceLoaderMaxage, which contains an array of the same values.
Trevor Parscal [Wed, 22 Sep 2010 20:15:31 +0000 (20:15 +0000)]
* Added WebRequest::getFuzzyBool, which is a more JavaScript friendly version of getBool. Essentailly the same thing, except the string 'false' is also considered boolean false.
* Made use of getFuzzyBool where otherwise awkward and sometimes varied versions of 'flase' === false detection were being used.
Trevor Parscal [Wed, 22 Sep 2010 20:11:30 +0000 (20:11 +0000)]
Actually improves on fix for bug #25246 by reducing the power of the foreground color rule - it was overriding the placeholder class. This corrects a mistake made in r73562.
Chad Horohoe [Wed, 22 Sep 2010 19:19:47 +0000 (19:19 +0000)]
Skip new object construction if it's going to be the same
Trevor Parscal [Wed, 22 Sep 2010 19:15:53 +0000 (19:15 +0000)]
Improves on fix for bug #25246 by reducing the power of the foreground color rule - it was overriding the placeholder class.
Chad Horohoe [Wed, 22 Sep 2010 19:09:14 +0000 (19:09 +0000)]
Fix dupe title construction, reported by ymas on IRC
Trevor Parscal [Wed, 22 Sep 2010 18:36:57 +0000 (18:36 +0000)]
Resolves bug #25246 by adding an explicit foreground color to the search box.
Trevor Parscal [Wed, 22 Sep 2010 18:30:32 +0000 (18:30 +0000)]
Removed extra "Msg" string being appended to message names, which was a remanant of the old code. This fixes bug #25251
Trevor Parscal [Wed, 22 Sep 2010 18:03:29 +0000 (18:03 +0000)]
Fixed check for mediaWiki existance and removed additional unneeded wrapping in mediaWiki.loader.using calls as per comments on r73499.
Platonides [Wed, 22 Sep 2010 16:50:09 +0000 (16:50 +0000)]
Fix bug from r68337. The variable is called $res, not $result
Platonides [Wed, 22 Sep 2010 16:06:27 +0000 (16:06 +0000)]
No need of $wgMemc after r73386.
Change the comment added in r73260 so that it doesn't look that relying on how previous tests set the globals is ever acceptable.
Chad Horohoe [Wed, 22 Sep 2010 13:54:53 +0000 (13:54 +0000)]
Followup r71961, more php4 constructors
Roan Kattouw [Wed, 22 Sep 2010 12:04:24 +0000 (12:04 +0000)]
Revert r73510 (trunk version of r73511 ; missed the fact that the latter was a merge). Disabling API modules has been possible since r41268 and is documented at mediawiki.org/wiki/API:Restricting_API_usage#Disabling_modules
Tim Starling [Wed, 22 Sep 2010 08:14:19 +0000 (08:14 +0000)]
Allow API modules to be disabled in configuration. To replace WMF live hack (see bug 25238).
Max Semenik [Wed, 22 Sep 2010 07:42:59 +0000 (07:42 +0000)]
Class doesn't exist anymore
Max Semenik [Wed, 22 Sep 2010 07:37:28 +0000 (07:37 +0000)]
Fixed PHP4-isms
Priyanka Dhanda [Wed, 22 Sep 2010 00:16:43 +0000 (00:16 +0000)]
RunSeleniumTests.php: Cleaned up a few options that this script takes. Settings are now through a file passed into seleniumConfig or via a hook SeleniumSettings. Reasonable default values when some value is not found.
Trevor Parscal [Wed, 22 Sep 2010 00:05:29 +0000 (00:05 +0000)]
Removed unneeded mediaWiki.loader.using wrapper which got the old toolbar working again. Fixes bug #25239.
Alexandre Emsenhuber [Tue, 21 Sep 2010 20:33:40 +0000 (20:33 +0000)]
Made file description header consistent with other ones
Alexandre Emsenhuber [Tue, 21 Sep 2010 20:11:40 +0000 (20:11 +0000)]
Fixed some doxygen warnings
Raimond Spekking [Tue, 21 Sep 2010 18:57:55 +0000 (18:57 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-21 18:45:00 UTC)
Roan Kattouw [Tue, 21 Sep 2010 13:12:11 +0000 (13:12 +0000)]
Typo fix
Sam Reed [Tue, 21 Sep 2010 06:55:49 +0000 (06:55 +0000)]
Braces, spaces, and a few unused arrays
Trevor Parscal [Mon, 20 Sep 2010 23:48:27 +0000 (23:48 +0000)]
Removed unused scripts.
Trevor Parscal [Mon, 20 Sep 2010 23:34:49 +0000 (23:34 +0000)]
Removed unused scripts.
Trevor Parscal [Mon, 20 Sep 2010 23:32:28 +0000 (23:32 +0000)]
Implemented request grouping on the client.
Trevor Parscal [Mon, 20 Sep 2010 21:54:15 +0000 (21:54 +0000)]
Using new group feature of ResourceLoaderModule objects rather than ugly hacking when generating ResourceLoader requests in output page.
Trevor Parscal [Mon, 20 Sep 2010 21:23:29 +0000 (21:23 +0000)]
Added group functionality to ResourceLoaderModule objects. Also fixed a bug that was registering non-ResourceLoaderFileModule objects incorrectly in the startup script.
Raimond Spekking [Mon, 20 Sep 2010 20:03:28 +0000 (20:03 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-20 19:55:00 UTC)
Trevor Parscal [Mon, 20 Sep 2010 19:20:55 +0000 (19:20 +0000)]
Changed profile property names - this should be the stable API from now on.
Trevor Parscal [Mon, 20 Sep 2010 19:12:28 +0000 (19:12 +0000)]
fixed comment
Trevor Parscal [Mon, 20 Sep 2010 19:04:16 +0000 (19:04 +0000)]
Fixed bug caused by unset( $this->mSkin ) in User::setOption which was removing the member, not just setting it to null, which would cause errors when later on checking if ( ! $this->mSkin ) such as in User::getSkin. By using $this->mSkin = null instead, the same effect of showing the new skin preference immediately on change in Special:Preferences without causing errors.
Trevor Parscal [Mon, 20 Sep 2010 17:54:30 +0000 (17:54 +0000)]
Fixed issues in r72940 - missing $ in release notes and remnant of ResourceLoaderUserPreferencesModule which is now ResourceLoaderUserOptionsModule
Priyanka Dhanda [Mon, 20 Sep 2010 17:23:34 +0000 (17:23 +0000)]
As per Nikerabbit's comment in r73260, is not needed by MessageCache
Sam Reed [Mon, 20 Sep 2010 14:32:38 +0000 (14:32 +0000)]
Remove some unused variables
Add some braces
Niklas Laxström [Mon, 20 Sep 2010 13:35:51 +0000 (13:35 +0000)]
Coding style
Rotem Liss [Mon, 20 Sep 2010 13:30:47 +0000 (13:30 +0000)]
Localization update for he.
Niklas Laxström [Mon, 20 Sep 2010 13:27:40 +0000 (13:27 +0000)]
Remove double escaping
Niklas Laxström [Mon, 20 Sep 2010 13:24:31 +0000 (13:24 +0000)]
Fix to language handling
Sam Reed [Mon, 20 Sep 2010 13:24:16 +0000 (13:24 +0000)]
Add missing parameter to lockTables
Add some braces
Chad Horohoe [Sun, 19 Sep 2010 23:27:16 +0000 (23:27 +0000)]
Followup r73348, rv unrelated change
Chad Horohoe [Sun, 19 Sep 2010 23:25:57 +0000 (23:25 +0000)]
Followup r70608, don't use master connection just for type check, and use getType() instead of instanceof
Chad Horohoe [Sun, 19 Sep 2010 23:17:21 +0000 (23:17 +0000)]
Followup r70138, add message descriptions
Raimond Spekking [Sun, 19 Sep 2010 20:17:24 +0000 (20:17 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-19 19:57:00 UTC)
Chad Horohoe [Sun, 19 Sep 2010 17:42:15 +0000 (17:42 +0000)]
Get rid of php4ism
Alexandre Emsenhuber [Sun, 19 Sep 2010 16:25:45 +0000 (16:25 +0000)]
For consistency, removed line break
Niklas Laxström [Sun, 19 Sep 2010 15:35:34 +0000 (15:35 +0000)]
Fix for r53290
Max Semenik [Sun, 19 Sep 2010 15:19:38 +0000 (15:19 +0000)]
Fixed DatabaseSqlite::tableName() to avoid prefixing system tables
Niklas Laxström [Sun, 19 Sep 2010 12:12:32 +0000 (12:12 +0000)]
Remove the redundant legend line from recent changes and watchlist. The symbols itself contain tooltips.
Alexandre Emsenhuber [Sun, 19 Sep 2010 11:08:09 +0000 (11:08 +0000)]
Fixed parameter name in documentation
Raimond Spekking [Sat, 18 Sep 2010 19:17:39 +0000 (19:17 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-18 19:01:00 UTC)
Robin Pepermans [Sat, 18 Sep 2010 17:18:40 +0000 (17:18 +0000)]
getHeadLinks() requires a skin parameter (added in r72349 for makeResourceLoaderLink(), although that parameter is not used there)
Alexandre Emsenhuber [Sat, 18 Sep 2010 11:24:45 +0000 (11:24 +0000)]
missing space
Sam Reed [Sat, 18 Sep 2010 09:32:13 +0000 (09:32 +0000)]
Comment out some unreachable code in a test due to explicit return;
Max Semenik [Sat, 18 Sep 2010 08:30:33 +0000 (08:30 +0000)]
Marked UploadFromUrlTest as broken
Niklas Laxström [Sat, 18 Sep 2010 08:28:19 +0000 (08:28 +0000)]
Allow defining sortable value for table cell with data-sort-value.
This should remove the need to hack around with hidden text and the cell content.
Priyanka Dhanda [Fri, 17 Sep 2010 23:36:52 +0000 (23:36 +0000)]
Some changes so that tests don't die silently on ci.
Raimond Spekking [Fri, 17 Sep 2010 19:30:45 +0000 (19:30 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-17 18:55:00 UTC)
Platonides [Fri, 17 Sep 2010 15:07:07 +0000 (15:07 +0000)]
Unused globals.
Platonides [Fri, 17 Sep 2010 14:27:57 +0000 (14:27 +0000)]
Revert change on r73064 for this file.
I had added that locally to stop r68544 breakage, but was not intended for commit.
Tim Starling [Fri, 17 Sep 2010 11:45:49 +0000 (11:45 +0000)]
Minor resource loader changes:
* Broke some long lines, converted some overly complex ternary operators to if()
* Added lots of line breaks into the output, for easier debugging.
* Added profiling for various functions.
* wfGetDb -> wfGetDB
* Fixed escaping in ResourceLoaderStartUpModule::getScript(), escape for JS rather than assuming Html::linkedScript() won't have any bad characters in it.
Niklas Laxström [Fri, 17 Sep 2010 08:10:38 +0000 (08:10 +0000)]
Add exclusive option for runJobs.php
Tim Starling [Fri, 17 Sep 2010 08:04:18 +0000 (08:04 +0000)]
Fix for r73196: don't use $this->a as a temporary variable, as promised in the commit message. I reverted it for testing and forgot to save after I reverted back.
Tim Starling [Fri, 17 Sep 2010 07:59:39 +0000 (07:59 +0000)]
In JSMin:
* Don't delete line breaks, it's annoying. Replace multi-line comments with the same number of line breaks, to keep line numbers the same. Tested line break count for jquery.js, it's the same now with or without minification.
* Remove the line break from the start of the output, which is there due to $this->a being initialised to "\n".
* Simplified get() by moving the character translations to __construct(). This enables some useful optimisations.
* Straightened out lookAhead/peek logic, which was poorly ported from C, where it was simulated using getc(stdin).
* Optimised scanning for end of comment, using strcspn() and strpos(). Now does multi-line comments at 14700 KB/s instead of 200 KB/s. Same trick with string and regex literals.
* For clarity, don't use $this->a as a temporary variable in the DELETE_A branch of action(). The only way the loop can exit is by it being the same as $this->b, which it was to start with anyway, so there's no point changing it in every iteration.
* Inlined get() and peek() into next() for a small performance gain. Removed peek() since it is no longer used.
* Overall, time to minify jquery.js reduced from 1.6s to 0.9s.
Tim Starling [Fri, 17 Sep 2010 03:52:53 +0000 (03:52 +0000)]
Tried to make it so that I can read this code without going insane, by replacing the integer literals with constants, and re-adding some comments which were left out during the port from jsmin.c
Chad Horohoe [Fri, 17 Sep 2010 00:25:26 +0000 (00:25 +0000)]
Commenting out Http tests until the concerns at mediawiki.org/wiki/Special:Code/MediaWiki/68544#c7372 are addressed
Chad Horohoe [Thu, 16 Sep 2010 23:26:20 +0000 (23:26 +0000)]
Fix a bunch of notices. Error was "Notice: Found alias defined for (some uppercased special page) when searching forspecial page aliases for (some lowercased special page). Case mismatch?"
Trevor Parscal [Thu, 16 Sep 2010 22:36:18 +0000 (22:36 +0000)]
Added version method to mediaWiki.loader
Trevor Parscal [Thu, 16 Sep 2010 22:07:25 +0000 (22:07 +0000)]
Integrated some jquery.ui customizations from UsabilityInitiative
Trevor Parscal [Thu, 16 Sep 2010 21:29:46 +0000 (21:29 +0000)]
Ported more customizations from UsabilityInitiative/css/vector
Trevor Parscal [Thu, 16 Sep 2010 21:17:39 +0000 (21:17 +0000)]
Got rid of glowing ball background image for overlays
Trevor Parscal [Thu, 16 Sep 2010 21:14:41 +0000 (21:14 +0000)]
Fixed font size issues
Trevor Parscal [Thu, 16 Sep 2010 21:12:41 +0000 (21:12 +0000)]
Fixed syntax errors in message get function
Trevor Parscal [Thu, 16 Sep 2010 20:53:06 +0000 (20:53 +0000)]
Fixed bug that cause ResourceLoader to generate mediaWiki.loader.implement calls with an empty array for the style parameter when no styles were present, which caused issues in JavaScript land - also made mediaWiki.loader more resilliant to this kind of abuse.
Raimond Spekking [Thu, 16 Sep 2010 19:17:24 +0000 (19:17 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-16 18:49:00 UTC)
Roan Kattouw [Thu, 16 Sep 2010 13:45:01 +0000 (13:45 +0000)]
(bug 25182) ResourceLoader breaks because of warnings thrown when an open_basedir is set. Fix is untested, asking reporter to confirm
Platonides [Wed, 15 Sep 2010 22:35:16 +0000 (22:35 +0000)]
List r73089 message aditions.
Trevor Parscal [Wed, 15 Sep 2010 22:07:15 +0000 (22:07 +0000)]
Added importScriptURI/importStylesheetURI-like functionality.
Nimish Gautam [Wed, 15 Sep 2010 21:13:57 +0000 (21:13 +0000)]
added line expressly stating where the extensions are included
Platonides [Wed, 15 Sep 2010 21:03:07 +0000 (21:03 +0000)]
Go back to Status objects after r71805. We return an Ok result if it can give a meaningful result (eg. in fallback).
Remove the now unused colonsToAssoc().
Better diffed without whitespaces.