|
@@ 5611-5624 (lines=14) @@
|
| 5608 |
|
* |
| 5609 |
|
* @return string User name |
| 5610 |
|
*/ |
| 5611 |
|
public function getRevisionUser() { |
| 5612 |
|
if ( is_null( $this->mRevisionUser ) ) { |
| 5613 |
|
$revObject = $this->getRevisionObject(); |
| 5614 |
|
|
| 5615 |
|
# if this template is subst: the revision id will be blank, |
| 5616 |
|
# so just use the current user's name |
| 5617 |
|
if ( $revObject ) { |
| 5618 |
|
$this->mRevisionUser = $revObject->getUserText(); |
| 5619 |
|
} elseif ( $this->ot['wiki'] || $this->mOptions->getIsPreview() ) { |
| 5620 |
|
$this->mRevisionUser = $this->getUser()->getName(); |
| 5621 |
|
} |
| 5622 |
|
} |
| 5623 |
|
return $this->mRevisionUser; |
| 5624 |
|
} |
| 5625 |
|
|
| 5626 |
|
/** |
| 5627 |
|
* Get the size of the revision |
|
@@ 5631-5645 (lines=15) @@
|
| 5628 |
|
* |
| 5629 |
|
* @return int|null Revision size |
| 5630 |
|
*/ |
| 5631 |
|
public function getRevisionSize() { |
| 5632 |
|
if ( is_null( $this->mRevisionSize ) ) { |
| 5633 |
|
$revObject = $this->getRevisionObject(); |
| 5634 |
|
|
| 5635 |
|
# if this variable is subst: the revision id will be blank, |
| 5636 |
|
# so just use the parser input size, because the own substituation |
| 5637 |
|
# will change the size. |
| 5638 |
|
if ( $revObject ) { |
| 5639 |
|
$this->mRevisionSize = $revObject->getSize(); |
| 5640 |
|
} elseif ( $this->ot['wiki'] || $this->mOptions->getIsPreview() ) { |
| 5641 |
|
$this->mRevisionSize = $this->mInputSize; |
| 5642 |
|
} |
| 5643 |
|
} |
| 5644 |
|
return $this->mRevisionSize; |
| 5645 |
|
} |
| 5646 |
|
|
| 5647 |
|
/** |
| 5648 |
|
* Mutator for $mDefaultSort |