Gerrit Patch Uploader has uploaded a new change for review. https://gerrit.wikimedia.org/r/132017
Change subject: Set wgFileCanRotate only on Special:Upload ...................................................................... Set wgFileCanRotate only on Special:Upload Change-Id: Iff6a952c8f4f21c0e27bd6b4191f3b0b453eec03 --- M includes/resourceloader/ResourceLoaderStartUpModule.php M includes/specials/SpecialUpload.php 2 files changed, 1 insertion(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/17/132017/1 diff --git a/includes/resourceloader/ResourceLoaderStartUpModule.php b/includes/resourceloader/ResourceLoaderStartUpModule.php index d0f0541..5401e02 100644 --- a/includes/resourceloader/ResourceLoaderStartUpModule.php +++ b/includes/resourceloader/ResourceLoaderStartUpModule.php @@ -97,9 +97,6 @@ 'wgSiteName' => $wgSitename, 'wgFileExtensions' => array_values( array_unique( $wgFileExtensions ) ), 'wgDBname' => $wgDBname, - // This sucks, it is only needed on Special:Upload, but I could - // not find a way to add vars only for a certain module - 'wgFileCanRotate' => BitmapHandler::canRotate(), 'wgAvailableSkins' => Skin::getSkinNames(), 'wgExtensionAssetsPath' => $wgExtensionAssetsPath, // MediaWiki sets cookies to have this prefix by default diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 01c0aaf..a08f7b3 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -1117,6 +1117,7 @@ 'wgStrictFileExtensions' => $wgStrictFileExtensions, 'wgCapitalizeUploads' => MWNamespace::isCapitalized( NS_FILE ), 'wgMaxUploadSize' => $this->mMaxUploadSize, + 'wgFileCanRotate' => BitmapHandler::canRotate(), ); $out = $this->getOutput(); -- To view, visit https://gerrit.wikimedia.org/r/132017 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iff6a952c8f4f21c0e27bd6b4191f3b0b453eec03 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits