The bug is here:

$this->query = current(explode(" more:", $this->query)); //resume $this->query to its original value (no categories)

The links are built with +more: not with a space.

Comments

Johnny vd Laar’s picture

StatusFileSize
new794 bytes

And a patch.

Johnny vd Laar’s picture

Status: Active » Needs review
dhavyd’s picture

Thanks! I'll check the patch and apply it so the fix appears on the next release...

dhavyd’s picture

The patch is applied and the changes will appear on the next release... Thanks!

dhavyd’s picture

Status: Needs review » Reviewed & tested by the community
Johnny vd Laar’s picture

What is the difference between "+more" and " more" because the google cse demo page seems to use " more"?

And I am getting more results if I change the code to " more" (the same results as the google cse demo page gives.

Johnny vd Laar’s picture

Status: Reviewed & tested by the community » Needs review
dhavyd’s picture

I don't know what the difference is... Have you figured out what it is?

Johnny vd Laar’s picture

No I use " more" as it gives the same results as GCSE demo and my client uses that to verify if our code works ;-)

dhavyd’s picture

Ok, then I think I can remove the "+". Is it this row we are talking about?
$this->query = current(explode("+more:", $this->query)); //resume $this->query to its original value (no categories)
It was your patch above that added the sign... Should I remove it?

Johnny vd Laar’s picture

Yes I think you should.

dhavyd’s picture

StatusFileSize
new769 bytes

Should it be like this?

Johnny vd Laar’s picture

Status: Needs review » Reviewed & tested by the community

Yeah I think so!

dhavyd’s picture

Status: Reviewed & tested by the community » Fixed

Done! This fix is coming up in the next release...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.