summaryrefslogtreecommitdiff
path: root/swext
diff options
context:
space:
mode:
authorrbuj <robert.buj@gmail.com>2014-09-05 16:01:10 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-09-06 01:37:36 -0500
commit7dbd88a070f20c56dd60162f9e7073bc114aaa86 (patch)
tree6e59ff39dcd55282083b4af3e2d164d8052cb2a3 /swext
parentadd27e4e3bc59fdfb572404f3ea0a0a76638638c (diff)
mediawiki: use contains to check if a string contains a substring
Change-Id: Ic98d295bb56c5466a388930b6cea403d6307b850 Reviewed-on: https://gerrit.libreoffice.org/11298 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'swext')
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java b/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java
index ebc3d8812eb9..9300b7cd5e12 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java
@@ -107,7 +107,7 @@ public class EditPageParser extends HTMLEditorKit.ParserCallback
// get the main URL from the first header-link with index.php
// the link with "action=edit" inside is preferable
if ( nIndexStart>= 0
- && ( m_sMainURL.length() == 0 || sName.indexOf( "action=edit" ) >= 0 ) )
+ && ( m_sMainURL.length() == 0 || sName.contains("action=edit") ) )
{
m_sMainURL = sName.substring( 0, nIndexStart );
}