Catrope has uploaded a new change for review.
https://gerrit.wikimedia.org/r/59644
Change subject: Make the "Report problem" POST URL configurable
......................................................................
Make the "Report problem" POST URL configurable
Change-Id: I4847d54b0effe433d5d179d91fdf361c249515ad
---
M VisualEditor.hooks.php
M VisualEditor.php
M modules/ve/init/mw/ve.init.mw.Target.js
3 files changed, 5 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor
refs/changes/44/59644/1
diff --git a/VisualEditor.hooks.php b/VisualEditor.hooks.php
index 5d95215..b89ceda 100644
--- a/VisualEditor.hooks.php
+++ b/VisualEditor.hooks.php
@@ -62,7 +62,8 @@
global $wgVisualEditorEnableSectionEditLinks;
$vars['wgVisualEditor'] = array(
'isPageWatched' => $out->getUser()->isWatched(
$out->getTitle() ),
- 'enableSectionEditLinks' =>
$wgVisualEditorEnableSectionEditLinks
+ 'enableSectionEditLinks' =>
$wgVisualEditorEnableSectionEditLinks,
+ 'reportProblemURL' =>
$wgVisualEditorParsoidProblemReportURL
);
return true;
diff --git a/VisualEditor.php b/VisualEditor.php
index 2453d51..fb46eb3 100644
--- a/VisualEditor.php
+++ b/VisualEditor.php
@@ -18,6 +18,8 @@
$wgVisualEditorParsoidPrefix = 'localhost';
// Timeout for HTTP requests to Parsoid in seconds
$wgVisualEditorParsoidTimeout = 100;
+// URL to post reports from the "Report problem" dialog to
+$wgVisualEditorParsoidProblemReportURL = 'http://parsoid.wmflabs.org/_bugs/';
// Namespaces to enable VisualEditor in
$wgVisualEditorNamespaces = array( NS_MAIN );
// Whether to use change tagging for VisualEditor edits
diff --git a/modules/ve/init/mw/ve.init.mw.Target.js
b/modules/ve/init/mw/ve.init.mw.Target.js
index 05abd6f..d280e68 100644
--- a/modules/ve/init/mw/ve.init.mw.Target.js
+++ b/modules/ve/init/mw/ve.init.mw.Target.js
@@ -592,7 +592,7 @@
'wiki': mw.config.get( 'wgDBname' )
};
$.post(
- 'http://parsoid.wmflabs.org/_bugs/',
+ mw.config.get( 'wgVisualEditor' ).reportProblemURL,
{ 'data': JSON.stringify( report ) },
function () {
// This space intentionally left blank
--
To view, visit https://gerrit.wikimedia.org/r/59644
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I4847d54b0effe433d5d179d91fdf361c249515ad
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits