Re: Event item duplication

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Robert Treat" <xzilla(at)users(dot)sourceforge(dot)net>, "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "PostgreSQL www" <pgsql-www(at)postgresql(dot)org>
Subject: Re: Event item duplication
Date: 2004-08-12 07:39:10
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E41A76D2@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

> -----Original Message-----
> From: pgsql-www-owner(at)postgresql(dot)org
> [mailto:pgsql-www-owner(at)postgresql(dot)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.

Browse pgsql-www by date

  From Date Subject
Next Message Dave Page 2004-08-12 07:43:59 Re: Add URL to event
Previous Message Martin Münstermann 2004-08-12 06:42:15 Re: 8.0.0beta1: -lpthread missing