2 rcs_id('$Id: PageInfo.php,v 1.1 2002-10-14 14:43:22 carstenklapp Exp $');
4 * ActionPage plugin returns extra information about a page.
5 * The plugin just passes a page revision handle to the Template
6 * info.tmpl, which does all the real work.
8 class WikiPlugin_PageInfo
15 function getDescription () {
16 return sprintf(_("Show extra page Info and statistics for %s"), '[pagename]');
19 function getDefaultArguments() {
20 return array('page' => '[pagename]');
23 function run ($dbi, $argstr, $request) {
24 $args = $this->getArgs($argstr, $request);
29 $page = $request->getPage();
31 if (!empty($version)) {
32 if (!($revision = $page->getRevision($version)))
33 NoSuchRevision($request, $page, $version);
36 $revision = $page->getCurrentRevision();
39 $template = new Template('info', $request,
40 array('revision' => $revision));
45 // (c-file-style: "gnu")
50 // c-hanging-comment-ender-p: nil
51 // indent-tabs-mode: nil