Skip to content
GitLab
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
1d8ef87c
Commit
1d8ef87c
authored
Oct 28, 2019
by
Dominik Hebeler
Browse files
Fixed Quicktip URL for tips route
parent
279acbb0
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/MetaGerSearch.php
View file @
1d8ef87c
...
...
@@ -10,8 +10,6 @@ use Illuminate\Support\Facades\Redis;
use
LaravelLocalization
;
use
View
;
const
TIP_SERVER
=
'http://metager3.de:63825/tips.xml'
;
class
MetaGerSearch
extends
Controller
{
public
function
search
(
Request
$request
,
MetaGer
$metager
)
...
...
@@ -209,7 +207,13 @@ class MetaGerSearch extends Controller
public
function
tips
(
Request
$request
)
{
$tips_text
=
file_get_contents
(
TIP_SERVER
);
$tipserver
=
''
;
if
(
env
(
'APP_ENV'
)
===
"development"
)
{
$tipserver
=
"https://dev.quicktips.metager.de/1.1/tips.xml"
;
}
else
{
$tipserver
=
"https://quicktips.metager.de/1.1/tips.xml"
;
}
$tips_text
=
file_get_contents
(
$tipserver
);
$tips
=
[];
try
{
$tips_xml
=
simplexml_load_string
(
$tips_text
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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