4 require_once("lib/plugin/RecentChanges.php");
6 class WikiPlugin_RecentEdits
7 extends WikiPlugin_RecentChanges
10 return _("RecentEdits");
13 function getDescription () {
14 return _("List all recent edits in this wiki.");
17 function getVersion() {
18 return preg_replace("/[Revision: $]/", '',
22 function getDefaultArguments() {
23 $args = parent::getDefaultArguments();
24 $args['show_minor'] = true;
25 $args['show_all'] = true;
29 // box is used to display a fixed-width, narrow version with common header.
30 // just a numbered list of limit pagenames, without date.
31 function box($args = false, $request = false, $basepage = false) {
32 if (!$request) $request =& $GLOBALS['request'];
33 if (!isset($args['limit'])) $args['limit'] = 15;
34 $args['format'] = 'box';
35 $args['show_minor'] = true;
36 $args['show_major'] = true;
37 $args['show_deleted'] = false;
38 $args['show_all'] = true;
40 return $this->makeBox(WikiLink(_("RecentEdits"),'',_("Recent Edits")),
41 $this->format($this->getChanges($request->_dbi, $args), $args));
45 // (c-file-style: "gnu")
50 // c-hanging-comment-ender-p: nil
51 // indent-tabs-mode: nil