| @@ 150-163 (lines=14) @@ | ||
| 147 | * |
|
| 148 | * @return string |
|
| 149 | */ |
|
| 150 | public function getRcComment() { |
|
| 151 | $rcComment = $this->actionText; |
|
| 152 | ||
| 153 | if ( $this->comment != '' ) { |
|
| 154 | if ( $rcComment == '' ) { |
|
| 155 | $rcComment = $this->comment; |
|
| 156 | } else { |
|
| 157 | $rcComment .= wfMessage( 'colon-separator' )->inContentLanguage()->text() . |
|
| 158 | $this->comment; |
|
| 159 | } |
|
| 160 | } |
|
| 161 | ||
| 162 | return $rcComment; |
|
| 163 | } |
|
| 164 | ||
| 165 | /** |
|
| 166 | * Get the RC comment from the last addEntry() call for IRC |
|
| @@ 170-183 (lines=14) @@ | ||
| 167 | * |
|
| 168 | * @return string |
|
| 169 | */ |
|
| 170 | public function getRcCommentIRC() { |
|
| 171 | $rcComment = $this->ircActionText; |
|
| 172 | ||
| 173 | if ( $this->comment != '' ) { |
|
| 174 | if ( $rcComment == '' ) { |
|
| 175 | $rcComment = $this->comment; |
|
| 176 | } else { |
|
| 177 | $rcComment .= wfMessage( 'colon-separator' )->inContentLanguage()->text() . |
|
| 178 | $this->comment; |
|
| 179 | } |
|
| 180 | } |
|
| 181 | ||
| 182 | return $rcComment; |
|
| 183 | } |
|
| 184 | ||
| 185 | /** |
|
| 186 | * Get the comment from the last addEntry() call |
|