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
a079a40e
Commit
a079a40e
authored
May 24, 2017
by
Dominik Hebeler
Browse files
Merge branch 'patch-1' into 'development'
Wikipedia Quicktip wieder aktiv See merge request
!902
parents
48269c84
102078a5
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/MetaGerSearch.php
View file @
a079a40e
...
...
@@ -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
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