[pmwiki-users] Recent page and external link flagging features
Patrick R. Michaud
pmichaud at pobox.com
Tue Aug 2 09:17:39 CDT 2005
On Tue, Aug 02, 2005 at 10:27:27AM +0200, Hans B PUFAL wrote:
> The set of link page variables needed to be moved to after the loading
> of config.php so as to allow config modifications.
Not at all - one can already adjust the link page variables in
config.php.
> function PageTime($pagename) {
> # return the page time
> global $WikiLibDirs,$Now;
> foreach ($WikiLibDirs as $dir)
> if ($page = $dir->read($pagename)) break;
> return (@$page['time']) ? $page['time'] : $Now;
> }
Shorter and faster:
function PageTime($pagename) {
$page = ReadPage($pagename, READPAGE_CURRENT);
return $page['time'];
}
Pm
More information about the pmwiki-users
mailing list