Re: Event item duplication - Mailing list pgsql-www

From Dave Page
Subject Re: Event item duplication
Date
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E41A76D2@ratbert.vale-housing.co.uk
Whole thread Raw
In response to Event item duplication  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-www

> -----Original Message-----
> From: pgsql-www-owner@postgresql.org
> [mailto:pgsql-www-owner@postgresql.org] On Behalf Of Robert Treat
> Sent: 11 August 2004 19:35
> To: Josh Berkus
> Cc: Bruce Momjian; PostgreSQL www
> Subject: Re: [pgsql-www] Event item duplication
>
> I noticed the same thing last night and figured someone was
> editing it... well, for some reason the event page is not
> rebuilding properly, though I don't see anything particularly
> wrong with it...Dave, do you see anything in the logs?  I've
> manually hacked it for now, let's see if the problem comes back.

It's caused by this:

  // The following line was added by Devrim on July, 29th, 2003
  if ($summary != $details) {
    $data .= str_replace("\n", "<br>", $summary);
    $data .= "<br>";
  }
  $data .= str_replace("\n", "<br>", $details);


In other words, unless the summary is identical to the main body, it
will display both. I'm not sure why Devrim added that, but there was
probably what seemed like a good reason at the time.

I've changed it to only display the summary if there is no body (as per
the news).

Regards, Dave.

pgsql-www by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Request for download stats on release
Next
From: "Dave Page"
Date:
Subject: Re: Add URL to event