Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
1fadd4a5
Commit
1fadd4a5
authored
Nov 14, 2017
by
Karl Hasselbring
Browse files
Fixed: Nicht eigene Suchen werden jetzt wieder ausgeführt
parent
52551f4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
1fadd4a5
...
...
@@ -481,7 +481,7 @@ class MetaGer
$overtureEnabled
=
false
;
$sumaCount
=
0
;
$isCustomSearch
=
strpos
(
$this
->
fokus
,
'focus_'
)
==
0
;
$isCustomSearch
=
$this
->
startsWith
(
$this
->
fokus
,
'focus_'
);
/* Erstellt die Liste der eingestellten Sumas
* Der einzige Unterschied bei angepasstem Suchfokus ist,
...
...
@@ -1183,6 +1183,11 @@ class MetaGer
}
# Hilfsfunktionen
public
function
startsWith
(
$haystack
,
$needle
)
{
$length
=
strlen
(
$needle
);
return
(
substr
(
$haystack
,
0
,
$length
)
===
$needle
);
}
public
function
removeInvalids
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment