From b1dc8d302f5a7c7b8f69261f86ff01377a910c68 Mon Sep 17 00:00:00 2001 From: Adoche Onaji Date: Sat, 11 Mar 2023 19:14:30 +0100 Subject: [PATCH] tdf#38890 Remove hard-coded URLs in source Files Project URLs are extracted to the Common.xcu files and read in the source files. Change-Id: I0da72ff033af6c155195b2f91177e7bf7d554daa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149115 Reviewed-by: Stephan Bergmann Tested-by: Jenkins --- svx/CppunitTest_svx_dialogs_test.mk | 4 ++++ svx/source/dialog/SafeModeDialog.cxx | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/svx/CppunitTest_svx_dialogs_test.mk b/svx/CppunitTest_svx_dialogs_test.mk index efc2903b2201..926e0747c6c2 100644 --- a/svx/CppunitTest_svx_dialogs_test.mk +++ b/svx/CppunitTest_svx_dialogs_test.mk @@ -23,6 +23,10 @@ $(eval $(call gb_CppunitTest_set_include,svx_dialogs_test,\ $$(INCLUDE) \ )) +$(eval $(call gb_CppunitTest_use_custom_headers,svx_dialogs_test,\ + officecfg/registry \ +)) + $(eval $(call gb_CppunitTest_use_libraries,svx_dialogs_test, \ basegfx \ comphelper \ diff --git a/svx/source/dialog/SafeModeDialog.cxx b/svx/source/dialog/SafeModeDialog.cxx index b499ae3d5911..5aaa30e437cf 100644 --- a/svx/source/dialog/SafeModeDialog.cxx +++ b/svx/source/dialog/SafeModeDialog.cxx @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -82,7 +83,8 @@ SafeModeDialog::SafeModeDialog(weld::Window* pParent) RadioBtnHdl(*mxRadioRestore); // Set URL for help button (module=safemode) - OUString sURL("http://hub.libreoffice.org/send-feedback/?LOversion=" + utl::ConfigManager::getAboutBoxProductVersion() + + OUString sURL(officecfg::Office::Common::Menus::SendFeedbackURL::get() //officecfg/registry/data/org/openoffice/Office/Common.xcu => https://hub.libreoffice.org/send-feedback/ + + "?LOversion=" + utl::ConfigManager::getAboutBoxProductVersion() + "&LOlocale=" + utl::ConfigManager::getUILocale() + "&LOmodule=safemode"); mxBugLink->set_uri(sURL);