dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MCR: Deprecate and gut Revision class
[lhc/web/wiklou.git]
/
includes
/
actions
/
HistoryAction.php
diff --git
a/includes/actions/HistoryAction.php
b/includes/actions/HistoryAction.php
index
a9e3d6a
..
85e8db6
100644
(file)
--- a/
includes/actions/HistoryAction.php
+++ b/
includes/actions/HistoryAction.php
@@
-154,7
+154,7
@@
class HistoryAction extends FormlessAction {
# show deletion/move log if there is an entry
LogEventsList::showLogExtract(
$out,
# show deletion/move log if there is an entry
LogEventsList::showLogExtract(
$out,
- [ 'delete', 'move' ],
+ [ 'delete', 'move'
, 'protect'
],
$this->getTitle(),
'',
[ 'lim' => 10,
$this->getTitle(),
'',
[ 'lim' => 10,
@@
-335,8
+335,8
@@
class HistoryAction extends FormlessAction {
* @return FeedItem
*/
function feedItem( $row ) {
* @return FeedItem
*/
function feedItem( $row ) {
- $rev = new Revision( $row );
- $rev->setTitle( $this->getTitle() );
+ $rev = new Revision( $row
, 0, $this->getTitle()
);
+
$text = FeedUtils::formatDiffRow(
$this->getTitle(),
$this->getTitle()->getPreviousRevisionID( $rev->getId() ),
$text = FeedUtils::formatDiffRow(
$this->getTitle(),
$this->getTitle()->getPreviousRevisionID( $rev->getId() ),
@@
-639,12
+639,10
@@
class HistoryPager extends ReverseChronologicalPager {
*/
function historyLine( $row, $next, $notificationtimestamp = false,
$latest = false, $firstInList = false ) {
*/
function historyLine( $row, $next, $notificationtimestamp = false,
$latest = false, $firstInList = false ) {
- $rev = new Revision( $row );
- $rev->setTitle( $this->getTitle() );
+ $rev = new Revision( $row, 0, $this->getTitle() );
if ( is_object( $next ) ) {
if ( is_object( $next ) ) {
- $prevRev = new Revision( $next );
- $prevRev->setTitle( $this->getTitle() );
+ $prevRev = new Revision( $next, 0, $this->getTitle() );
} else {
$prevRev = null;
}
} else {
$prevRev = null;
}