Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1191,8 +1191,8 @@ |
1192 | 1192 | |
1193 | 1193 | 'LogEventsListShowLogExtract': called before the string is added to OutputPage. Returning false will prevent the string from being added to the OutputPage |
1194 | 1194 | &$s: html string to show for the log extract |
1195 | | -$types: String or Array (''isn't documented on showLogExtract() yet, not sure what it is'') |
1196 | | -$page: String The page title to show log entries for |
| 1195 | +$types: String or Array Log types to show |
| 1196 | +$page: String or Title The page title to show log entries for |
1197 | 1197 | $user: String The user who made the log entries |
1198 | 1198 | $param: Associative Array with the following additional options: |
1199 | 1199 | - lim Integer Limit of items to show, default is 50 |
Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -600,8 +600,8 @@ |
601 | 601 | * Show log extract. Either with text and a box (set $msgKey) or without (don't set $msgKey) |
602 | 602 | * |
603 | 603 | * @param $out OutputPage|String-by-reference |
604 | | - * @param $types String or Array |
605 | | - * @param $page String The page title to show log entries for |
| 604 | + * @param $types String|Array Log types to show |
| 605 | + * @param $page String|Title The page title to show log entries for |
606 | 606 | * @param $user String The user who made the log entries |
607 | 607 | * @param $param Associative Array with the following additional options: |
608 | 608 | * - lim Integer Limit of items to show, default is 50 |
— | — | @@ -679,8 +679,11 @@ |
680 | 680 | } |
681 | 681 | if( $pager->getNumRows() > $pager->mLimit ) { # Show "Full log" link |
682 | 682 | $urlParam = array(); |
683 | | - if ( $page != '') |
| 683 | + if ( $page instanceof Title ) { |
| 684 | + $urlParam['page'] = $page->getPrefixedDBkey(); |
| 685 | + } elseif ( $page != '' ) { |
684 | 686 | $urlParam['page'] = $page; |
| 687 | + } |
685 | 688 | if ( $user != '') |
686 | 689 | $urlParam['user'] = $user; |
687 | 690 | if ( !is_array( $types ) ) # Make it an array, if it isn't |
— | — | @@ -758,7 +761,7 @@ |
759 | 762 | * @param $list LogEventsList |
760 | 763 | * @param $types String or Array: log types to show |
761 | 764 | * @param $performer String: the user who made the log entries |
762 | | - * @param $title String or Title: the page title the log entries are for |
| 765 | + * @param $title String|Title: the page title the log entries are for |
763 | 766 | * @param $pattern String: do a prefix search rather than an exact title match |
764 | 767 | * @param $conds Array: extra conditions for the query |
765 | 768 | * @param $year Integer: the year to start from |