svx/CppunitTest_svx_dialogs_test.mk  |    4 ++++
 svx/source/dialog/SafeModeDialog.cxx |    4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

New commits:
commit b1dc8d302f5a7c7b8f69261f86ff01377a910c68
Author:     Adoche Onaji <dochieon...@gmail.com>
AuthorDate: Sat Mar 11 19:14:30 2023 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Wed Mar 22 07:10:36 2023 +0000

    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 <sberg...@redhat.com>
    Tested-by: Jenkins

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 <svx/dialmgr.hxx>
 #include <svx/strings.hrc>
 #include <svx/FileExportedDialog.hxx>
+#include <officecfg/Office/Common.hxx>
 
 #include <com/sun/star/task/OfficeRestartManager.hpp>
 #include <com/sun/star/task/XInteractionHandler.hpp>
@@ -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);
 

Reply via email to