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
f9a7ea86
Commit
f9a7ea86
authored
Nov 23, 2020
by
Davide Aprea
Browse files
add dummy engine to create search engines function
parent
35eadd45
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
f9a7ea86
...
...
@@ -675,6 +675,11 @@ class MetaGer
$this
->
enabledSearchengines
[
"bing"
]
=
$this
->
sumaFile
->
sumas
->
{
"bing"
};
}
# Setting dummy engine as active if it exists (suma file created from example)
if
(
$this
->
getFokus
()
===
"web"
&&
isset
(
$this
->
sumaFile
->
sumas
->
{
"dummy"
})){
$this
->
enabledSearchengines
[
"dummy"
]
=
$this
->
sumaFile
->
sumas
->
{
"dummy"
};
}
if
(
sizeof
(
$this
->
enabledSearchengines
)
===
0
)
{
$filter
=
""
;
foreach
(
$this
->
queryFilter
as
$queryFilter
=>
$filterPhrase
)
{
...
...
Write
Preview
Supports
Markdown
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