[MediaWiki-commits] [Gerrit] remove ve loading if not in edit mode - change (mediawiki...BlueSpiceExtensions)
Tweichart has uploaded a new change for review. https://gerrit.wikimedia.org/r/192277 Change subject: remove ve loading if not in edit mode .. remove ve loading if not in edit mode * this hook call should be reevaluated, jumping out saves 40 queries Change-Id: I9578ac40b3d3768b590dcf1d4f5d9d743bae15ed --- M VisualEditor/VisualEditor.class.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions refs/changes/77/192277/1 diff --git a/VisualEditor/VisualEditor.class.php b/VisualEditor/VisualEditor.class.php index 29f44ef..95318af 100644 --- a/VisualEditor/VisualEditor.class.php +++ b/VisualEditor/VisualEditor.class.php @@ -286,6 +286,10 @@ public function onParserAfterTidy($oParser) { global $wgLang, $wgOut; + $sAction = $wgOut-getRequest()-getVal('action', 'view'); + if ($sAction != 'edit' $sAction != 'preview' $sAction != 'submit') + return true; + if ($this-bTagsCollected) return true; $this-bTagsCollected = true; -- To view, visit https://gerrit.wikimedia.org/r/192277 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9578ac40b3d3768b590dcf1d4f5d9d743bae15ed Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: master Gerrit-Owner: Tweichart weich...@hallowelt.biz ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] remove ve loading if not in edit mode - change (mediawiki...BlueSpiceExtensions)
Robert Vogel has uploaded a new change for review. https://gerrit.wikimedia.org/r/192278 Change subject: remove ve loading if not in edit mode .. remove ve loading if not in edit mode * this hook call should be reevaluated, jumping out saves 40 queries Change-Id: I9578ac40b3d3768b590dcf1d4f5d9d743bae15ed (cherry picked from commit 4386eab5d6986500f8bd35074057e3abb353a96d) --- M VisualEditor/VisualEditor.class.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions refs/changes/78/192278/1 diff --git a/VisualEditor/VisualEditor.class.php b/VisualEditor/VisualEditor.class.php index 29f44ef..95318af 100644 --- a/VisualEditor/VisualEditor.class.php +++ b/VisualEditor/VisualEditor.class.php @@ -286,6 +286,10 @@ public function onParserAfterTidy($oParser) { global $wgLang, $wgOut; + $sAction = $wgOut-getRequest()-getVal('action', 'view'); + if ($sAction != 'edit' $sAction != 'preview' $sAction != 'submit') + return true; + if ($this-bTagsCollected) return true; $this-bTagsCollected = true; -- To view, visit https://gerrit.wikimedia.org/r/192278 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9578ac40b3d3768b590dcf1d4f5d9d743bae15ed Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: REL1_23 Gerrit-Owner: Robert Vogel vo...@hallowelt.biz Gerrit-Reviewer: Tweichart weich...@hallowelt.biz ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] remove ve loading if not in edit mode - change (mediawiki...BlueSpiceExtensions)
Robert Vogel has submitted this change and it was merged. Change subject: remove ve loading if not in edit mode .. remove ve loading if not in edit mode * this hook call should be reevaluated, jumping out saves 40 queries Change-Id: I9578ac40b3d3768b590dcf1d4f5d9d743bae15ed --- M VisualEditor/VisualEditor.class.php 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: Robert Vogel: Verified; Looks good to me, approved diff --git a/VisualEditor/VisualEditor.class.php b/VisualEditor/VisualEditor.class.php index 29f44ef..95318af 100644 --- a/VisualEditor/VisualEditor.class.php +++ b/VisualEditor/VisualEditor.class.php @@ -286,6 +286,10 @@ public function onParserAfterTidy($oParser) { global $wgLang, $wgOut; + $sAction = $wgOut-getRequest()-getVal('action', 'view'); + if ($sAction != 'edit' $sAction != 'preview' $sAction != 'submit') + return true; + if ($this-bTagsCollected) return true; $this-bTagsCollected = true; -- To view, visit https://gerrit.wikimedia.org/r/192277 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9578ac40b3d3768b590dcf1d4f5d9d743bae15ed Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: master Gerrit-Owner: Tweichart weich...@hallowelt.biz Gerrit-Reviewer: Mglaser gla...@hallowelt.biz Gerrit-Reviewer: Pigpen reym...@hallowelt.biz Gerrit-Reviewer: Robert Vogel vo...@hallowelt.biz Gerrit-Reviewer: jenkins-bot ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] remove ve loading if not in edit mode - change (mediawiki...BlueSpiceExtensions)
Robert Vogel has submitted this change and it was merged. Change subject: remove ve loading if not in edit mode .. remove ve loading if not in edit mode * this hook call should be reevaluated, jumping out saves 40 queries Change-Id: I9578ac40b3d3768b590dcf1d4f5d9d743bae15ed (cherry picked from commit 4386eab5d6986500f8bd35074057e3abb353a96d) --- M VisualEditor/VisualEditor.class.php 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: Robert Vogel: Verified; Looks good to me, approved diff --git a/VisualEditor/VisualEditor.class.php b/VisualEditor/VisualEditor.class.php index 29f44ef..95318af 100644 --- a/VisualEditor/VisualEditor.class.php +++ b/VisualEditor/VisualEditor.class.php @@ -286,6 +286,10 @@ public function onParserAfterTidy($oParser) { global $wgLang, $wgOut; + $sAction = $wgOut-getRequest()-getVal('action', 'view'); + if ($sAction != 'edit' $sAction != 'preview' $sAction != 'submit') + return true; + if ($this-bTagsCollected) return true; $this-bTagsCollected = true; -- To view, visit https://gerrit.wikimedia.org/r/192278 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I9578ac40b3d3768b590dcf1d4f5d9d743bae15ed Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: REL1_23 Gerrit-Owner: Robert Vogel vo...@hallowelt.biz Gerrit-Reviewer: Robert Vogel vo...@hallowelt.biz Gerrit-Reviewer: Tweichart weich...@hallowelt.biz Gerrit-Reviewer: jenkins-bot ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits