dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d29f7c
)
Don't show rollback or undo buttons for deleted revisions or revivions whose next...
author
Rotem Liss
<rotem@users.mediawiki.org>
Wed, 23 Apr 2008 16:23:13 +0000
(16:23 +0000)
committer
Rotem Liss
<rotem@users.mediawiki.org>
Wed, 23 Apr 2008 16:23:13 +0000
(16:23 +0000)
includes/PageHistory.php
patch
|
blob
|
history
diff --git
a/includes/PageHistory.php
b/includes/PageHistory.php
index
8bed073
..
bf018f2
100644
(file)
--- a/
includes/PageHistory.php
+++ b/
includes/PageHistory.php
@@
-264,7
+264,9
@@
class PageHistory {
$tools = array();
- if ( !is_null( $next ) && is_object( $next ) ) {
+ if ( !is_null( $next ) && is_object( $next ) &&
+ !$rev->isDeleted( Revision::DELETED_TEXT ) &&
+ !$next->rev_deleted & Revision::DELETED_TEXT ) {
if( !$this->mTitle->getUserPermissionsErrors( 'rollback', $wgUser )
&& !$this->mTitle->getUserPermissionsErrors( 'edit', $wgUser )
&& $latest ) {