[dokuwiki] Re: possible bug in parserutils.php patch on the 19th of September...

fwiw, DW creates the following metadata as standard when a page is created.

    [meta] => Array
        (
            [internal] => Array
                (
                    [cache] => 1
                    [toc] => 1
                )

            [description] => Array
                (
                    [abstract] => this is a test page
                )

            [date] => Array
                (
                    [created] => 1191019734
                )

            [creator] => Christopher Smith
            [last_change] => Array
                (
                    [date] => 1191019734
                    [ip] => 192.168.0.101
                    [type] => C
                    [id] => sandbox:metadata
                    [user] => chris
                    [sum] => created
                    [extra] => 
                )

        )


If the page had sufficient headings to warrant a TOC, the TOC entry
would show the full table of contents.


If I then add the meta syntax from your last message (meta plugin with
same change to avoid array_merge using empty keys), the metadata looks
like this ...

[meta] => Array
        (
            [date] => Array
                (
                    [created] => 1128368633
                    [modified] => 1191109952
                )

            [creator] => Anthony Caetano
            [last_change] => Array
                (
                    [date] => 1191109952
                    [ip] => 192.168.0.101
                    [type] => E
                    [id] => sandbox:metadata
                    [user] => chris
                    [sum] => 
                    [extra] => 
                )

            [contributor] => Array
                (
                    [chris] => Christopher Smith
                )

            [something] => else
            [another] => thing
            [internal] => Array
                (
                    [cache] => 1
                    [toc] => 1
                )

            [description] => Array
                (
                    [abstract] => this is a test page
                )

        )

And if I delete the metadata file, it gets recreated looking like so ...

    [meta] => Array
        (
            [last_change] => Array
                (
                    [date] => 1191109952
                    [ip] => 192.168.0.101
                    [type] => E
                    [id] => sandbox:metadata
                    [user] => chris
                    [sum] => 
                    [extra] => 
                )

            [date] => Array
                (
                    [created] => 1128368633
                )

            [creator] => Anthony Caetano
            [something] => else
            [another] => thing
            [internal] => Array
                (
                    [cache] => 1
                    [toc] => 1
                )

            [description] => Array
                (
                    [abstract] => this is a test page
                )

        )


Which all seems correct to me.



-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: