コード例 #1
0
	public function getComment() {
		$timestamp = wfTimestamp( TS_MW, $this->entry->getTimestamp() );
		if ( $timestamp < '20080129000000' ) {
			# Suppress $comment from old entries (before 2008-01-29),
			# not needed and can contain incorrect links
			return '';
		}
		return parent::getComment();
	}
 public function getComment()
 {
     $legacy = $this->entry->getParameters();
     if (isset($legacy['reason'])) {
         $comment = Linker::commentBlock($legacy['reason']);
         // No hard coded spaces thanx
         return ltrim($comment);
     }
     return parent::getComment();
 }
コード例 #3
0
ファイル: LogFormatter.php プロジェクト: D66Ha/mediawiki
 public function getComment()
 {
     if ($this->comment === null) {
         $this->comment = parent::getComment();
     }
     // Make sure we execute the LogLine hook so that we immediately return
     // the correct value.
     if ($this->revert === null) {
         $this->getActionLinks();
     }
     return $this->comment;
 }