Revision::newFromTitle may return null
Bug: T176882 Change-Id: I9aea25c2db81a12f16414edcb279f3241dc380bc
This commit is contained in:
parent
8e22f9bd49
commit
606e72ab68
|
@ -746,7 +746,12 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
|||
$historyUrl = $title->getLocalURL( [ 'action' => 'history' ] );
|
||||
}
|
||||
|
||||
$editor = $this->getRevisionEditor( Revision::newFromTitle( $title ) );
|
||||
$rev = Revision::newFromTitle( $title );
|
||||
if ( $rev ) {
|
||||
$editor = $this->getRevisionEditor( $rev );
|
||||
} else {
|
||||
$editor = false;
|
||||
}
|
||||
return [
|
||||
// Use $edit['timestamp'] (Unix format) instead of $timestamp (MW format)
|
||||
'data-timestamp' => $isMainPage ? '' : wfTimestamp( TS_UNIX, $timestamp ),
|
||||
|
|
Loading…
Reference in New Issue