Page 1 of 1

Couple of strange things in 08-alpha9

Posted: Tue Jan 04, 2005 1:04 pm
by Martin
The categories plug-in lists the categories, but not as links...

The recent entries plug-in disappears when asked to skip the frontpage entries.

-m

Re: Couple of strange things in 08-alpha9

Posted: Tue Jan 04, 2005 4:29 pm
by garvinhicking
That was a small bug in the snapshots from the last days, has been fixed yesterday by Tom. It was about missing closing quotes in the <a> tag...

Regards,
Garvin

Posted: Tue Jan 04, 2005 5:36 pm
by Martin
Ah, yes... Just downloaded the latest and that fixed the categories-problem. The recent entries-problem however, continues...

-m

Posted: Thu Jan 06, 2005 10:31 am
by mgroeninger
I think I know what's up with the recent entries-problem..

this code is used to set the limit to the sql query:

Code: Select all

       switch($number_from_sw) {
            case 'skip':
                $sql_number = serendipity_db_limit_sql(serendipity_db_limit($serendipity['fetchLimit'], $sql_number));
                break;
        }
and it returns the word LIMIT as part of the string...

So, when the query is set with:

Code: Select all

                                       ORDER BY timestamp DESC
                                          LIMIT $sql_number";
The LIMIT appears twice... removing the LIMIT from the query seems to fix the problem...

I'll submit a patch to the dev list..

Posted: Thu Jan 06, 2005 12:21 pm
by garvinhicking
Matthew was right, the problem came because of the double LIMIT part. I committed his fix to CVS by now!

Regards,
Garvin