wikihelp: Pass the LibreOffice version to help.libreoffice.org.
This commit is contained in:
parent
17a2f9bf7e
commit
159a985062
2 changed files with 11 additions and 0 deletions
|
@ -188,6 +188,15 @@ void AppendConfigToken( String& rURL, sal_Bool bQuestionMark, const rtl::OUStrin
|
|||
rURL += DEFINE_CONST_UNICODE("&System=");
|
||||
rURL += SvtHelpOptions().GetSystem();
|
||||
|
||||
static rtl::OUString aVersion;
|
||||
if ( aVersion.isEmpty() )
|
||||
aVersion = utl::Bootstrap::getProductVersion();
|
||||
|
||||
if ( !aVersion.isEmpty() )
|
||||
{
|
||||
rURL += DEFINE_CONST_UNICODE( "&Version=" );
|
||||
rURL += String( aVersion );
|
||||
}
|
||||
}
|
||||
|
||||
sal_Bool GetHelpAnchor_Impl( const String& _rURL, String& _rAnchor )
|
||||
|
|
|
@ -697,6 +697,8 @@ bool URLParameter::query()
|
|||
m_nHitCount = value.toInt32();
|
||||
else if( parameter.compareToAscii( "Active" ) == 0 )
|
||||
m_aActive = value;
|
||||
else if( parameter.compareToAscii( "Version" ) == 0 )
|
||||
; // ignored (but accepted) in the build-in help, useful only for the online help
|
||||
else
|
||||
ret = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue