00552: *RecentChanges files keep only the first change made ever

Summary: *RecentChanges files keep only the first change made ever
Created: 2005-10-04 12:57
Status: Closed - not a bug
Category: Bug
Assigned:
Priority: 3
Version: 2.0.10
OS: Linux RH FC4/Appache 2.0.54/php 5.0.4

Description: RecentChanges of any group shows only the first change ever made; same for the AllRecentChanges.

Consulted the mailing list, but didn't get any clues.

Initially ran PMWIKI 2.0.0, saw the problem.

Updated to PMWIKI 2.0.10, the problem still there.

Tried removing all *RecentChanges files, didn't help, still got the one new change and no more changes in any *RecentChanges files.

Here is my Site.AllRecentChanges if that could help:

version=pmwiki-2.0.10 ordered=1 urlencoded=1 agent=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1. 0.4-4 Firefox/1.0.4 host=192.168.0.10 name=Site.AllRecentChanges rev=20 text=* Main.WikiSandbox . . . September 30, 2005, at 07:12 PM by dino?:

 

time=1128447916


If I change a line in the PostRecentChanges function, recent changes start working.

The change is in the line# 1149 from:

    $rcelim = preg_quote(preg_replace("/$RCDelimPattern.*$/",' ',$pgtext),'/');

to:

    $rcelim = preg_quote(preg_replace("/$RCDelimPattern/",' ',$pgtext),'/');

Looks like the original line was killing my change before it was added to the file or something like that. I don't understand how this works for everyone else?!

Can anyone comment on what's the purpose of the original line? Is my change safe? Should it be done differently?