Alex Monk has uploaded a new change for review. https://gerrit.wikimedia.org/r/294713
Change subject: Simplify the VE RB URL config some more, now that we no longer use wgServerName ...................................................................... Simplify the VE RB URL config some more, now that we no longer use wgServerName Change-Id: Ibb75dafd05fc44d230e06d81919e7856a63b13fe --- M wmf-config/CommonSettings.php 1 file changed, 2 insertions(+), 7 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config refs/changes/13/294713/1 diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php index ba0b8b1..b1b7d7e 100644 --- a/wmf-config/CommonSettings.php +++ b/wmf-config/CommonSettings.php @@ -2181,13 +2181,8 @@ // RESTbase connection configuration if ( $wmgVisualEditorAccessRESTbaseDirectly ) { - // HACK: $wgServerName is not available yet at this point, it's set by Setup.php - // so use a hook - $wgExtensionFunctions[] = function () { - global $wgVisualEditorRestbaseURL, $wgVisualEditorFullRestbaseURL; - $wgVisualEditorRestbaseURL = "/api/rest_v1/page/html/"; - $wgVisualEditorFullRestbaseURL = "/api/rest_"; - }; + $wgVisualEditorRestbaseURL = "/api/rest_v1/page/html/"; + $wgVisualEditorFullRestbaseURL = "/api/rest_"; } // Tab configuration -- To view, visit https://gerrit.wikimedia.org/r/294713 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibb75dafd05fc44d230e06d81919e7856a63b13fe Gerrit-PatchSet: 1 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: Alex Monk <kren...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits