wiki.techinc.nl/includes
Ori Livneh 3f1e9fa268 resourceloader: Tidy up RL to simplify ResourceLoaderEditToolbarModule
* Remove ResourceLoaderFileModule::getLessCompiler(). There is no reason for a
  module to need to get a compiler in a different manner than
  ResourceLoader::getLessCompiler().
* Add ResourceLoaderModule::getLessVars(). This method provides a means for
  subclasses to easily inject custom LESS variables. The default implementation
  simply returns an empty array.
* Make the $context parameter for ResourceLoaderFileModule::readStyleFiles()
  non-optional (via graceful deprecation). The only callers I found were either
  already calling it with a ResourceLoader context, or had a perfectly usable
  ResourceLoaderContext in local scope.
* Make ResourceLoaderFileModule::{readStyleFile,getLessCompiler} require a
  context. These methods are protected, so I didn't bother with a deprecation.
* Call ksort() on the LESS variables array in the only place it matters -- when
  hashing its serialized representation to construct a cache lookup key. This
  relieves getLessVars() subclasses from having to remember to re-sort the
  variables array if they modify it.
* These changes make it possible to substantially simplify
  ResourceLoaderEditToolbarModule, because the only thing it needs to do now is
  implement its own getLessVars() method.
* This also allows it to be versioned like any other ResourceLoaderFileModule,
  rather than having to use enableModuleContentVersion().

Change-Id: Ic3eab71691e502bfe19bdf4eb6f82cc679a7782f
2015-09-28 12:18:12 -07:00
..
actions RollbackAction: Remove dead argument 2015-09-24 17:16:24 +00:00
api Merge "API: Correct 'from_namespace' logic in ApiQueryBacklinksprop" 2015-09-26 19:04:19 +00:00
cache Remove unused private property LinkCache::$mClassVer 2015-09-25 07:54:02 -04:00
changes Don't attempt to render block if none of the lines can be shown 2015-09-23 13:28:03 +02:00
changetags Avoid full RC table scans in ChangeTags::updateTags() 2015-08-19 02:25:18 -07:00
clientpool Make long lines shorter to pass phpcs in 6 files 2015-09-26 17:07:06 +00:00
compat Replace bundled IPSet library with composer dependency 2015-08-26 10:38:09 -07:00
composer
config
content CssContentHandler: Fix @return documentation 2015-08-28 10:40:08 -07:00
context Make long lines shorter to pass phpcs in 6 files 2015-09-26 17:07:06 +00:00
dao Fix some space-related phpcs warnings in includes/ 2015-08-15 08:56:03 +00:00
db Fixed spacing 2015-09-26 20:44:54 +00:00
debug Fixed spacing 2015-09-26 20:44:54 +00:00
deferred Re-enable Generic.Files.EndFileNewline.NotFound 2015-09-26 15:58:53 +01:00
diff Make long lines shorter to pass phpcs in 6 files 2015-09-26 17:07:06 +00:00
exception resourceloader: Include exception log id in error message 2015-09-25 23:40:03 +00:00
externalstore
filebackend Set getFeatures() for MemoryFileBackend 2015-09-21 15:04:12 -07:00
filerepo Updated key WANObjectCache::delete() callers to avoid races 2015-09-26 18:02:00 +00:00
gallery Load module mediawiki.page.gallery.styles for all ImageGalleries 2015-09-24 16:46:47 +02:00
htmlform Merge "Fixed spacing" 2015-09-26 21:02:39 +00:00
installer resourceloader: Tidy up RL to simplify ResourceLoaderEditToolbarModule 2015-09-28 12:18:12 -07:00
interwiki
jobqueue jobqueue: A few small code cleanups to RefreshLinksJob 2015-09-22 01:27:36 +00:00
json
libs Make lines shorter to pass phpcs under includes/libs 2015-09-26 18:20:34 +00:00
logging Migrate protect log to new log system 2015-09-25 17:07:50 +02:00
mail Set 'List-Help' header for watchlist emails 2015-08-19 09:37:45 +00:00
media Fixed spacing 2015-09-26 20:44:54 +00:00
objectcache Make long lines shorter to pass phpcs in 6 files 2015-09-26 17:07:06 +00:00
page ImagePage.php: Make lines shorter to make phpcs happier 2015-09-26 13:55:51 +00:00
pager Add protected getCurrentRow to TablePager 2015-08-29 12:13:47 +00:00
parser Fixed spacing 2015-09-26 20:44:54 +00:00
password Remove dead argument in EncryptedPassword.php 2015-09-16 17:03:35 +00:00
poolcounter poolcounter: PoolCounterRedis doc cleanups 2015-09-04 03:35:56 +00:00
profiler Compat fix for HHVM on non-Linux OSs 2015-09-23 01:55:57 -07:00
rcfeed RC: Handle getLine returning null, which breaks Redis engine (at least HHVM) 2015-08-18 23:08:36 -04:00
registration Fixed spacing 2015-09-26 20:44:54 +00:00
resourceloader resourceloader: Tidy up RL to simplify ResourceLoaderEditToolbarModule 2015-09-28 12:18:12 -07:00
revisiondelete Purge remaining oversight references from code 2015-09-16 18:21:44 +00:00
search Make long lines shorter to pass phpcs in 6 files 2015-09-26 17:07:06 +00:00
site Some bugzilla.wikimedia.org -> phabricator.wikimedia.org changes 2015-09-24 17:17:25 +02:00
skins Merge "Extend Title check in Skin for titles without associated titles" 2015-09-18 01:39:13 +00:00
specialpage Removed used of resultObject() in QueryPage 2015-09-26 10:54:43 -07:00
specials Fixed spacing 2015-09-26 20:44:54 +00:00
templates Remove dead local vars in UsercreateTemplate 2015-09-10 19:28:45 +00:00
tidy Re-enable PSR2.Methods.MethodDeclaration.AbstractAfterVisibility 2015-09-26 16:30:43 +01:00
title Make lines short to pass phpcs in six files under includes/ 2015-09-26 18:41:01 +00:00
upload UploadFromUrl: Display an error to the user on invalid wpUploadFileURL 2015-09-23 17:09:47 +02:00
utils Fixed spacing 2015-09-26 20:44:54 +00:00
widget Make lines short to pass phpcs in six files under includes/ 2015-09-26 18:41:01 +00:00
.htaccess
AjaxDispatcher.php
AjaxResponse.php
AuthPlugin.php Add new authentication-related hooks (and remove one) replacing some AuthPlugin methods 2015-09-18 10:46:13 -04:00
AutoLoader.php
Autopromote.php
Block.php
Category.php
CategoryFinder.php
CategoryViewer.php
Collation.php
DefaultSettings.php Turn $wgSearchRunSuggestedQueryPercent into $wgSearchRunSuggestedQuery 2015-09-25 14:01:00 -07:00
Defines.php Revert "Enable users to watch category membership changes" 2015-08-20 10:35:56 -07:00
DeprecatedGlobal.php
EditPage.php Fixed spacing 2015-09-26 20:44:54 +00:00
Export.php
Fallback.php
Feed.php Feed.php: Apply wfBCP47 to language code 2015-09-23 18:11:07 +00:00
FeedUtils.php
FileDeleteForm.php
ForkController.php
FormOptions.php
GitInfo.php
GlobalFunctions.php Made wfIsBadImage() use APC 2015-09-25 22:38:04 +00:00
HistoryBlob.php
Hooks.php Enhance stacktrace logging for fatals 2015-09-08 07:03:36 +00:00
Html.php Fixed spacing 2015-09-26 20:44:54 +00:00
HtmlFormatter.php Some bugzilla.wikimedia.org -> phabricator.wikimedia.org changes 2015-09-24 17:17:25 +02:00
HttpFunctions.php Re-enable MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect 2015-09-26 18:32:32 +01:00
Import.php Fix exception in Import, when import of a revision fails 2015-09-22 16:22:39 +02:00
Licenses.php
limit.sh
Linker.php Linker.php: Make long lines shorter to pass phpcs 2015-09-26 17:06:57 +00:00
LinkFilter.php
MagicWord.php Fix use of preg_match_all in MagicWord.php 2015-09-10 21:43:46 +02:00
MediaWiki.php Merge "Fixed some doc errors in tryNormaliseRedirect()" 2015-08-28 09:39:33 +00:00
MediaWikiVersionFetcher.php
Message.php Merge "Allow constructing a Message from a MessageSpecifier" 2015-07-20 23:05:26 +00:00
mime.info
mime.types
MimeMagic.php
MovePage.php Merge "Migrate move protect log to new log system" 2015-08-18 23:17:03 +00:00
MWNamespace.php registration: Fix namespaces added through the ExtensionProcessor 2015-08-27 03:03:43 +00:00
MWTimestamp.php Add MWTimestamp::getTimezoneString(), use it in file revert message 2015-09-23 13:38:16 -07:00
NoLocalSettings.php
OutputHandler.php
OutputPage.php Fixed spacing 2015-09-26 20:44:54 +00:00
PathRouter.php
PHPVersionCheck.php Rework PHP and vendor check 2015-07-21 22:51:20 +02:00
PHPVersionError.php
Preferences.php Add new authentication-related hooks (and remove one) replacing some AuthPlugin methods 2015-09-18 10:46:13 -04:00
PrefixSearch.php PrefixSearch: Avoid passing non-strings to Title::newFromText() 2015-09-02 22:57:09 -07:00
ProtectionForm.php Use XmlSelect in ProtectionForm 2015-07-30 20:00:41 +00:00
Revision.php Revision::newNullRevision: Make sure the Title is set in the constructor 2015-07-31 17:00:48 -07:00
RevisionList.php
Sanitizer.php Make lines short to pass phpcs in six files under includes/ 2015-09-26 18:41:01 +00:00
Setup.php Removed deprecated $wgDeferredUpdateList 2015-09-21 16:30:16 -07:00
SiteConfiguration.php
SiteStats.php
SquidPurgeClient.php
Status.php Status: Correct documentation 2015-08-06 13:50:47 +02:00
StreamFile.php
StubObject.php Remove return of void method results 2015-09-10 18:45:22 +00:00
TemplateParser.php objectcache: Make first parameter of newAccelerator optional 2015-08-24 23:43:19 +02:00
Title.php Remove non-existing param PHPDoc tag from Title 2015-09-02 14:50:55 +00:00
TitleArray.php
TitleArrayFromResult.php
User.php Updated key WANObjectCache::delete() callers to avoid races 2015-09-26 18:02:00 +00:00
UserArray.php
UserArrayFromResult.php
UserRightsProxy.php Updated key WANObjectCache::delete() callers to avoid races 2015-09-26 18:02:00 +00:00
WatchedItem.php Use deferred updates in place of $wgActivityUpdatesUseJobQueue 2015-07-15 23:52:55 +00:00
WebRequest.php WebRequest.php: Make lines shorter to make phpcs happier 2015-09-26 14:19:03 +00:00
WebResponse.php
WebStart.php WebStart.php: Make lines shorter to make phpcs happier 2015-09-26 12:45:52 +03:00
WikiMap.php Remove WikiReference::getHostname. 2015-09-14 18:41:13 +00:00
Xml.php
XmlSelect.php Enable multiple default values for XmlSelect 2015-09-13 22:52:33 +00:00
ZhConversion.php Chinese Conversion Table Update 2015-7 2015-08-16 12:33:33 +08:00