Yaron Koren has uploaded a new change for review.
https://gerrit.wikimedia.org/r/187694
Change subject: Updated set of JS modules to be loaded
......................................................................
Updated set of JS modules to be loaded
Change-Id: I9cd08b017ed5c5984754e38823b60f02008f11a4
---
M specials/SF_UploadWindow.php
1 file changed, 11 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticForms
refs/changes/94/187694/1
diff --git a/specials/SF_UploadWindow.php b/specials/SF_UploadWindow.php
index 33ec87b..f072e91 100644
--- a/specials/SF_UploadWindow.php
+++ b/specials/SF_UploadWindow.php
@@ -970,10 +970,16 @@
global $wgTitle, $wgLanguageCode,
$wgXhtmlDefaultNamespace, $wgXhtmlNamespaces, $wgContLang;
- $this->getOutput()->disable();
+ $out = $this->getOutput();
+
+ $out->disable();
$wgTitle = SpecialPage::getTitleFor( 'Upload' );
- $this->getOutput()->addModules( array( 'mediawiki.action.edit',
'mediawiki.legacy.upload', 'mediawiki.legacy.wikibits', 'mediawiki.legacy.ajax'
) );
+ $out->addModules( array(
+ 'mediawiki.action.edit', // For <charinsert> support
+ 'mediawiki.special.upload', // Extras for thumbnail and
license preview.
+ 'mediawiki.legacy.upload', // For backward
compatibility (this was removed 2014-09-10)
+ ) );
$text = <<<END
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -989,11 +995,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
-{$this->getOutput()->getHeadScripts()}
+{$out->getHeadScripts()}
</head>
<body>
-{$this->getOutput()->getHTML()}
-{$this->getOutput()->getBottomScripts()}
+{$out->getHTML()}
+{$out->getBottomScripts()}
</body>
</html>
--
To view, visit https://gerrit.wikimedia.org/r/187694
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9cd08b017ed5c5984754e38823b60f02008f11a4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits