Skip to content
Snippets Groups Projects
Commit e80fcaad authored by Aria Givi's avatar Aria Givi
Browse files

Merge branch 'MetaGer-Redesign' of...

Merge branch 'MetaGer-Redesign' of https://gitlab.metager3.de/open-source/MetaGer into MetaGer-Redesign
parents f79f3966 298e948b
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -481,7 +481,7 @@ class MetaGer ...@@ -481,7 +481,7 @@ class MetaGer
$overtureEnabled = false; $overtureEnabled = false;
$sumaCount = 0; $sumaCount = 0;
$isCustomSearch = strpos($this->fokus, 'focus_') == 0; $isCustomSearch = $this->startsWith($this->fokus, 'focus_');
/* Erstellt die Liste der eingestellten Sumas /* Erstellt die Liste der eingestellten Sumas
* Der einzige Unterschied bei angepasstem Suchfokus ist, * Der einzige Unterschied bei angepasstem Suchfokus ist,
...@@ -1183,6 +1183,11 @@ class MetaGer ...@@ -1183,6 +1183,11 @@ class MetaGer
} }
# Hilfsfunktionen # Hilfsfunktionen
public function startsWith($haystack, $needle)
{
$length = strlen($needle);
return (substr($haystack, 0, $length) === $needle);
}
public function removeInvalids() public function removeInvalids()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment