Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/271025
Change subject: Use tabs for indenting Gadget definition pages
......................................................................
Use tabs for indenting Gadget definition pages
For consistency with rest of MediaWiki, especially CodeEditor.
Note that this will cause dirty diffs for any definition pages created
before this patch, but that's not a big deal.
Change-Id: I3ed4b4aa7d18c489b9a322f67ea6ea31e610a257
---
M includes/content/GadgetDefinitionContent.php
M includes/content/GadgetDefinitionContentHandler.php
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gadgets
refs/changes/25/271025/1
diff --git a/includes/content/GadgetDefinitionContent.php
b/includes/content/GadgetDefinitionContent.php
index c72d708..cc71d4a 100644
--- a/includes/content/GadgetDefinitionContent.php
+++ b/includes/content/GadgetDefinitionContent.php
@@ -40,7 +40,7 @@
*/
public function beautifyJSON() {
// @todo we should normalize entries in module.scripts and
module.styles
- return FormatJson::encode( $this->getAssocArray(), true,
FormatJson::UTF8_OK );
+ return FormatJson::encode( $this->getAssocArray(), "\t",
FormatJson::UTF8_OK );
}
/**
diff --git a/includes/content/GadgetDefinitionContentHandler.php
b/includes/content/GadgetDefinitionContentHandler.php
index 49d4f18..7bee7f4 100644
--- a/includes/content/GadgetDefinitionContentHandler.php
+++ b/includes/content/GadgetDefinitionContentHandler.php
@@ -39,7 +39,7 @@
public function makeEmptyContent() {
$class = $this->getContentClass();
- return new $class( FormatJson::encode(
$this->getDefaultMetadata(), true ) );
+ return new $class( FormatJson::encode(
$this->getDefaultMetadata(), "\t" ) );
}
public function getDefaultMetadata() {
--
To view, visit https://gerrit.wikimedia.org/r/271025
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3ed4b4aa7d18c489b9a322f67ea6ea31e610a257
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gadgets
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits