mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2024-11-14 03:49:48 +01:00
ok i think i unfucked it
This commit is contained in:
parent
c6cf9afb6e
commit
458bd8c1b5
|
@ -132,7 +132,10 @@ class solofield{
|
||||||
];
|
];
|
||||||
|
|
||||||
// check for errors and load the result div
|
// check for errors and load the result div
|
||||||
$this->error_and_load($html, $out);
|
if($this->error_and_load($html)){
|
||||||
|
|
||||||
|
return $out;
|
||||||
|
}
|
||||||
|
|
||||||
$items =
|
$items =
|
||||||
$this->fuckhtml
|
$this->fuckhtml
|
||||||
|
@ -272,7 +275,10 @@ class solofield{
|
||||||
];
|
];
|
||||||
|
|
||||||
// check for errors and load the result div
|
// check for errors and load the result div
|
||||||
$this->error_and_load($html, $out);
|
if($this->error_and_load($html)){
|
||||||
|
|
||||||
|
return $out;
|
||||||
|
}
|
||||||
|
|
||||||
$images =
|
$images =
|
||||||
$this->fuckhtml
|
$this->fuckhtml
|
||||||
|
@ -399,7 +405,10 @@ class solofield{
|
||||||
];
|
];
|
||||||
|
|
||||||
// check for errors and load the result div
|
// check for errors and load the result div
|
||||||
$this->error_and_load($html, $out);
|
if($this->error_and_load($html)){
|
||||||
|
|
||||||
|
return $out;
|
||||||
|
}
|
||||||
|
|
||||||
$items =
|
$items =
|
||||||
$this->fuckhtml
|
$this->fuckhtml
|
||||||
|
@ -576,7 +585,7 @@ class solofield{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function error_and_load($html, $out){
|
private function error_and_load($html){
|
||||||
|
|
||||||
if(strlen($html) === 0){
|
if(strlen($html) === 0){
|
||||||
|
|
||||||
|
@ -603,13 +612,14 @@ class solofield{
|
||||||
|
|
||||||
if($nosearch){
|
if($nosearch){
|
||||||
|
|
||||||
return $out;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Exception("Failed to grep search list");
|
throw new Exception("Failed to grep search list");
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->fuckhtml->load($list);
|
$this->fuckhtml->load($list);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function unfuckdate($date){
|
private function unfuckdate($date){
|
||||||
|
|
Loading…
Reference in a new issue