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
102078a5
Commit
102078a5
authored
May 24, 2017
by
Phil Höfer
Browse files
Update MetaGerSearch.php
parent
48269c84
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/MetaGerSearch.php
View file @
102078a5
...
...
@@ -169,7 +169,7 @@ class MetaGerSearch extends Controller
}
}
/*
# Wikipedia Quicktip
$url
=
"https://"
.
APP
::
getLocale
()
.
".wikipedia.org/w/api.php?action=opensearch&search="
.
urlencode
(
$q
)
.
"&limit=10&namespace=0&format=json&redirects=resolve"
;
try
{
...
...
@@ -203,7 +203,7 @@ class MetaGerSearch extends Controller
$quicktips
[]
=
$quicktip
;
}
$mquicktips
=
array_merge
(
$mquicktips
,
$quicktips
);
*/
if
(
APP
::
getLocale
()
===
"de"
)
{
# Dict.cc Quicktip
if
(
count
(
explode
(
' '
,
$q
))
<
3
)
{
...
...
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