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
25bf0662
Commit
25bf0662
authored
Aug 31, 2016
by
Dominik Hebeler
Browse files
Wenn keine Suchmaschine zum Weitersuchen eingestellt war, ist das Programm abgestürzt.
parent
1075d787
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
25bf0662
...
...
@@ -1065,7 +1065,7 @@ class MetaGer
public
function
nextSearchLink
()
{
if
(
isset
(
$this
->
next
)
&&
count
(
$this
->
next
[
'engines'
])
>
0
)
{
if
(
isset
(
$this
->
next
)
&&
isset
(
$this
->
next
[
'engines'
])
&&
count
(
$this
->
next
[
'engines'
])
>
0
)
{
$requestData
=
$this
->
request
->
except
([
'page'
,
'out'
]);
$requestData
[
'next'
]
=
md5
(
serialize
(
$this
->
next
));
$link
=
action
(
'MetaGerSearch@search'
,
$requestData
);
...
...
app/Models/Searchengine.php
View file @
25bf0662
...
...
@@ -68,17 +68,20 @@ abstract class Searchengine
}
else
{
$q
=
$metager
->
getQ
();
}
$this
->
getString
=
$this
->
generateGetString
(
$q
,
$metager
->
getUrl
(),
$metager
->
getLanguage
(),
$metager
->
getCategory
());
$this
->
getString
=
$this
->
generateGetString
(
$q
,
$metager
->
getUrl
(),
$metager
->
getLanguage
(),
$metager
->
getCategory
());
die
(
$this
->
getString
);
$this
->
hash
=
md5
(
$this
->
host
.
$this
->
getString
.
$this
->
port
.
$this
->
name
);
$this
->
resultHash
=
$metager
->
getHashCode
();
}
abstract
public
function
loadResults
(
$result
);
public
function
getLast
(
MetaGer
$metager
,
$result
){
public
function
getLast
(
MetaGer
$metager
,
$result
)
{
}
public
function
getNext
(
MetaGer
$metager
,
$result
){
public
function
getNext
(
MetaGer
$metager
,
$result
)
{
}
...
...
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