CSS/JSON/JavaScript ContentHandler refactoring
authorYuri Astrakhan <yurik@wikimedia.org>
Mon, 15 Sep 2014 08:17:29 +0000 (04:17 -0400)
committerLegoktm <legoktm.wikipedia@gmail.com>
Mon, 15 Sep 2014 08:24:15 +0000 (08:24 +0000)
commit3a28ee5acb7d8ccfa5d80766f2bd764d14902f24
tree305ea2e141a2e53897d31c5960dfacda64576907
parent8959a09b8fcde9e6648b431f945bb1d1a4b77b79
CSS/JSON/JavaScript ContentHandler refactoring

* All content handlers that deal with code/data tend to have
English as their page language & pageview language, so moved common
code to the abstract CodeContentHandler class.

* Renamed JSONContent & JSONContentHandler into JsonContent*

Change-Id: I46819a0572ef5becc211d0d82471ff7102edaa3c
13 files changed:
RELEASE-NOTES-1.24
includes/AutoLoader.php
includes/DefaultSettings.php
includes/content/CodeContentHandler.php [new file with mode: 0644]
includes/content/CssContentHandler.php
includes/content/JSONContent.php [deleted file]
includes/content/JSONContentHandler.php [deleted file]
includes/content/JavaScriptContentHandler.php
includes/content/JsonContent.php [new file with mode: 0644]
includes/content/JsonContentHandler.php [new file with mode: 0644]
includes/content/MessageContent.php
tests/phpunit/includes/content/JSONContentTest.php [deleted file]
tests/phpunit/includes/content/JsonContentTest.php [new file with mode: 0644]