[Pmwiki-users] config.php, $RecentChangesFmt

Brian Clark brianj+devnull
Tue Dec 7 14:12:58 CST 2004


On Tue, Dec 07, 2004 at 06:55:23AM -0700, Patrick R. Michaud wrote:

> On Tue, Dec 07, 2004 at 12:11:56AM -0500, Brian Clark wrote:

[...]

> > I'm trying to alter the format of the AllRecentChanges listing, but it
> > doesn't seem to be sticking.

[...]

> Any chance that the latest entries are appearing at the *end* of
> RecentChanges...?

> If so, then try this:

> $RecentChangesFmt['Main.AllRecentChanges'] =
>   '* [[$Group.$Name]]:  $CurrentTime by $AuthorLink';

> Note that there are *two* spaces between the colon (:) and
> $CurrentTime. The two spaces are significant. If this fixes the
> problem, I'll explain why in the next message (and we can see about
> working out ways to avoid this confusion in the future :-).

I found my problem. 

So, I went digging through the source code trying to figure out if some
global is getting overwritten or some such, and even changing the format
in the pmwiki.php source didn't have any affect.

Then it dawned on me that it's not formatting it as the page is
displayed, but it's formatting it as it's written to the file. 

Sure enough, I modified $RecentChangesFmt again, made a change to a
page, *then* the format worked (but only in the line for the page I
changed).

I guess that needs to be made clearer (which, I suppose I'll go edit the
documentation), but I'm now wondering why it doesn't format as the page
is sent to the browser rather than when the file is written.

-Brian




More information about the pmwiki-users mailing list