[pmwiki-users] PmWiki 2.2.4 released

Stéphane Heckel hsteph at club-internet.fr
Tue Jul 28 02:04:26 CDT 2009


"Petko Yotov" wrote :

> Hello. I have released pmwiki-2.2.4 stable today, available at :

Hello Petko & list,

Compared to the beta-68, are the following variables (or equivalent) 
"built-in" with v2.2.4 ?

# add $PageCreationTime
$FmtPV['$PageCreationTime'] = "strftime(\$GLOBALS['TimeFmt'], 
\$page['ctime'])";

# add cauthor to page attributes as extra field for ?action=attr
$PageAttributes['cauthor'] = '$[Page created by:]';

# add page variable {$CreatedBy}
$FmtPV['$CreatedBy'] = '@$page["cauthor"]';
# automatically set page creator to $Author for every new page
function SetPageCreator($pagename, &$page, &$new) {
 global $EnablePost, $Author, $PageCreator, $Now;
 SDV($PageCreator, $Author);
 if ($EnablePost && !$new["author"])
  $new["cauthor"] = $PageCreator;
}
array_unshift($EditFunctions, 'SetPageCreator');

Thanks for your comment,

SH 






More information about the pmwiki-users mailing list